Also, only those hosts that use ansible-pull should pull the repo to /etc/ansible
This commit is contained in:
parent
79220bef76
commit
ce034d28b0
@ -13,6 +13,12 @@
|
|||||||
roles:
|
roles:
|
||||||
- role: ansible-pull
|
- role: ansible-pull
|
||||||
tags: [ ansible, desktop ]
|
tags: [ ansible, desktop ]
|
||||||
|
- role: git
|
||||||
|
vars:
|
||||||
|
git_repos:
|
||||||
|
- repo: "{{ ansible_pull_repo }}"
|
||||||
|
dest: /etc/ansible
|
||||||
|
tags: [ ansible, git, desktop ]
|
||||||
- role: backup
|
- role: backup
|
||||||
vars:
|
vars:
|
||||||
backup_s3backup_tar_args_extra: h
|
backup_s3backup_tar_args_extra: h
|
||||||
|
6
site.yml
6
site.yml
@ -22,12 +22,6 @@
|
|||||||
UsePAM: yes
|
UsePAM: yes
|
||||||
X11Forwarding: no
|
X11Forwarding: no
|
||||||
tags: [ sshd, common ]
|
tags: [ sshd, common ]
|
||||||
- role: git
|
|
||||||
vars:
|
|
||||||
git_repos:
|
|
||||||
- repo: "{{ ansible_pull_repo }}"
|
|
||||||
dest: /etc/ansible
|
|
||||||
tags: [ ansible, git, common ]
|
|
||||||
# Import specific playbooks
|
# Import specific playbooks
|
||||||
- import_playbook: playbooks/db.yml
|
- import_playbook: playbooks/db.yml
|
||||||
- import_playbook: playbooks/web.yml
|
- import_playbook: playbooks/web.yml
|
||||||
|
Loading…
Reference in New Issue
Block a user