Split ansible-related config into separate task file.

This commit is contained in:
Jeff Geerling 2014-12-31 14:22:42 -06:00
parent 15a9f76a6b
commit 4185bbf63b
2 changed files with 18 additions and 5 deletions

View file

@ -10,10 +10,6 @@
- geerlingguy.homebrew
tasks:
- name: Ensure Ansible downloads directory exists.
file:
path: "{{ downloads }}"
state: directory
- include: tasks/ansible-setup.yml
- include: tasks/dotfiles.yml
- include: tasks/preferences.yml

17
tasks/ansible-setup.yml Normal file
View file

@ -0,0 +1,17 @@
---
- name: Ensure Ansible downloads directory exists.
file:
path: "{{ downloads }}"
state: directory
- name: Ensure /etc/ansible directory exists.
file:
path: /etc/ansible
state: directory
sudo: yes
- name: Symlink /usr/local/etc/ansible to /etc/ansible.
file:
src: /etc/ansible
path: /usr/local/etc/ansible
state: link