Redirect error output;Add debugging;Housekeeping
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
a3bbf88ce3
commit
8a83f47572
@ -27,6 +27,12 @@
|
|||||||
cmd: ansible-galaxy collection install {{ item }}
|
cmd: ansible-galaxy collection install {{ item }}
|
||||||
loop: "{{ dependencies.ansible_galaxy_collections }}"
|
loop: "{{ dependencies.ansible_galaxy_collections }}"
|
||||||
|
|
||||||
|
- ansible.builtin.command:
|
||||||
|
cmd: ls ~/.ansible -lashR
|
||||||
|
register: results
|
||||||
|
- ansible.builtin.debug:
|
||||||
|
var: results
|
||||||
|
|
||||||
- name: Install distro packages
|
- name: Install distro packages
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
pkg: "{{ dependencies.packages }}"
|
pkg: "{{ dependencies.packages }}"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
ansible.builtin.shell:
|
ansible.builtin.shell:
|
||||||
cmd: /usr/bin/vmtoolsd --cmd "info-get guestinfo.ovfEnv"
|
cmd: /usr/bin/vmtoolsd --cmd "info-get guestinfo.ovfEnv"
|
||||||
register: ovfenv
|
register: ovfenv
|
||||||
|
|
||||||
- name: Parse XML for vApp properties
|
- name: Parse XML for vApp properties
|
||||||
community.general.xml:
|
community.general.xml:
|
||||||
xmlstring: "{{ ovfenv.stdout }}"
|
xmlstring: "{{ ovfenv.stdout }}"
|
||||||
@ -10,6 +11,7 @@
|
|||||||
xpath: /ns:Environment/ns:PropertySection/ns:Property
|
xpath: /ns:Environment/ns:PropertySection/ns:Property
|
||||||
content: attribute
|
content: attribute
|
||||||
register: ovfenv
|
register: ovfenv
|
||||||
|
|
||||||
- name: Assign vApp properties to dictionary
|
- name: Assign vApp properties to dictionary
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
vapp: >-
|
vapp: >-
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Apply firstboot configuration w/ ansible
|
# Apply firstboot configuration w/ ansible
|
||||||
/usr/local/bin/ansible-playbook /opt/firstboot/ansible/playbook.yml | tee -a /var/log/firstboot.log > /dev/tty1
|
/usr/local/bin/ansible-playbook /opt/firstboot/ansible/playbook.yml | tee -a /var/log/firstboot.log > /dev/tty1 2>&1
|
||||||
|
Loading…
Reference in New Issue
Block a user