Also, only those hosts that use ansible-pull should pull the repo to /etc/ansible

This commit is contained in:
Salt 2021-08-01 15:07:02 -05:00
parent 79220bef76
commit ce034d28b0
2 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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