Split ansible-related config into separate task file.
This commit is contained in:
parent
15a9f76a6b
commit
4185bbf63b
6
main.yml
6
main.yml
@ -10,10 +10,6 @@
|
|||||||
- geerlingguy.homebrew
|
- geerlingguy.homebrew
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Ensure Ansible downloads directory exists.
|
- include: tasks/ansible-setup.yml
|
||||||
file:
|
|
||||||
path: "{{ downloads }}"
|
|
||||||
state: directory
|
|
||||||
|
|
||||||
- include: tasks/dotfiles.yml
|
- include: tasks/dotfiles.yml
|
||||||
- include: tasks/preferences.yml
|
- include: tasks/preferences.yml
|
||||||
|
|||||||
17
tasks/ansible-setup.yml
Normal file
17
tasks/ansible-setup.yml
Normal 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
|
||||||
Loading…
x
Reference in New Issue
Block a user