test(molecule): load group files and allow override from platform_vars.yml
This commit is contained in:
parent
19f509888a
commit
3a7440f570
3 changed files with 17 additions and 10 deletions
|
@ -16,29 +16,36 @@
|
||||||
- name: Converge
|
- name: Converge
|
||||||
hosts: molecule
|
hosts: molecule
|
||||||
gather_facts: true
|
gather_facts: true
|
||||||
|
vars_files:
|
||||||
|
- ../../../../../../../inventory/group_vars/all/vars.yml
|
||||||
|
- ../../../../../../../inventory/group_vars/all/vault.yml
|
||||||
|
- ./platform_vars.yml
|
||||||
tasks:
|
tasks:
|
||||||
|
- include_vars: ../../../../../../../inventory/group_vars/all/vars.yml
|
||||||
|
- include_vars: ../../../../../../../inventory/group_vars/all/vault.yml
|
||||||
|
- include_vars: ./platform_vars.yml
|
||||||
- name: Enable guest console access
|
- name: Enable guest console access
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.systemd_service:
|
ansible.builtin.systemd_service:
|
||||||
name: serial-getty@ttyS0.service
|
name: serial-getty@ttyS0.service
|
||||||
enabled: true
|
enabled: true
|
||||||
state: restarted
|
state: restarted
|
||||||
- name: Testing common role
|
|
||||||
ansible.builtin.include_role:
|
|
||||||
name: nullified.infrastructure.common
|
|
||||||
tasks_from: main.yml
|
|
||||||
- name: Testing development role
|
|
||||||
ansible.builtin.include_role:
|
|
||||||
name: nullified.infrastructure.development
|
|
||||||
tasks_from: main.yml
|
|
||||||
- name: Testing security role
|
- name: Testing security role
|
||||||
ansible.builtin.include_role:
|
ansible.builtin.include_role:
|
||||||
name: nullified.infrastructure.security
|
name: nullified.infrastructure.security
|
||||||
tasks_from: main.yml
|
tasks_from: main.yml
|
||||||
|
- name: Testing common role
|
||||||
|
ansible.builtin.include_role:
|
||||||
|
name: nullified.infrastructure.common
|
||||||
|
tasks_from: main.yml
|
||||||
- name: Testing server role
|
- name: Testing server role
|
||||||
ansible.builtin.include_role:
|
ansible.builtin.include_role:
|
||||||
name: nullified.infrastructure.server
|
name: nullified.infrastructure.server
|
||||||
tasks_from: main.yml
|
tasks_from: main.yml
|
||||||
|
- name: Testing development role
|
||||||
|
ansible.builtin.include_role:
|
||||||
|
name: nullified.infrastructure.development
|
||||||
|
tasks_from: main.yml
|
||||||
- name: Testing workstation role
|
- name: Testing workstation role
|
||||||
ansible.builtin.include_role:
|
ansible.builtin.include_role:
|
||||||
name: nullified.infrastructure.workstation
|
name: nullified.infrastructure.workstation
|
||||||
|
|
|
@ -35,5 +35,4 @@ provisioner:
|
||||||
name: ansible
|
name: ansible
|
||||||
inventory:
|
inventory:
|
||||||
group_vars:
|
group_vars:
|
||||||
all:
|
molecule:
|
||||||
custom_base_user_account: 'vagrant'
|
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
custom_base_user_account: 'vagrant'
|
Loading…
Add table
Reference in a new issue