From 4185bbf63b0f68a3e2f78876193f897ace36280f Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Wed, 31 Dec 2014 14:22:42 -0600 Subject: [PATCH] Split ansible-related config into separate task file. --- main.yml | 6 +----- tasks/ansible-setup.yml | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 5 deletions(-) create mode 100644 tasks/ansible-setup.yml diff --git a/main.yml b/main.yml index 97b52f7..2cdb4d8 100644 --- a/main.yml +++ b/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 diff --git a/tasks/ansible-setup.yml b/tasks/ansible-setup.yml new file mode 100644 index 0000000..84c4e00 --- /dev/null +++ b/tasks/ansible-setup.yml @@ -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