mirror of
https://github.com/geerlingguy/mac-dev-playbook
synced 2024-11-24 21:03:26 +00:00
Split ansible-related config into separate task file.
This commit is contained in:
parent
15a9f76a6b
commit
4185bbf63b
2 changed files with 18 additions and 5 deletions
6
main.yml
6
main.yml
|
@ -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
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…
Reference in a new issue