fix: exclude deployment host from all playbooks where it does not need to be included (and can cause issues)
This commit is contained in:
parent
b7bd59d5fa
commit
01d91eae57
@ -1,10 +1,19 @@
|
||||
---
|
||||
# hashistack prepare playbook
|
||||
- name: "Bootstrap"
|
||||
hosts: all
|
||||
hosts: all, !deployment
|
||||
gather_facts: true
|
||||
become: true
|
||||
tasks:
|
||||
- name: "Isntall unzip with package manager"
|
||||
ansible.builtin.include_role:
|
||||
name: ednz_cloud.manage_apt_packages
|
||||
vars:
|
||||
manage_apt_packages_list:
|
||||
- name: unzip
|
||||
version: latest
|
||||
state: present
|
||||
|
||||
- name: "Install hvac library with pip"
|
||||
ansible.builtin.include_role:
|
||||
name: ednz_cloud.manage_pip_packages
|
||||
@ -39,7 +48,7 @@
|
||||
install_docker_users:
|
||||
- "{{ ansible_user }}"
|
||||
install_docker_daemon_options: {}
|
||||
#! when: "'nomad_agents' in group_names"
|
||||
when: "'nomad_agents' in group_names"
|
||||
|
||||
- name: "Ensure /etc/localtime exists"
|
||||
ansible.builtin.file:
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
# hashistack deployment playbook
|
||||
- name: "Deploy"
|
||||
hosts: all
|
||||
hosts: all, !deployment
|
||||
strategy: linear
|
||||
gather_facts: true
|
||||
become: true
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
# hashistack generate certificates playbook
|
||||
- name: "Generate certificates"
|
||||
hosts: all
|
||||
hosts: all, !deployment
|
||||
strategy: linear
|
||||
gather_facts: true
|
||||
become: true
|
||||
|
Loading…
Reference in New Issue
Block a user