Redirect error output;Add debugging;Housekeeping
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Danny Bessems 2022-06-29 09:06:13 +02:00
parent a3bbf88ce3
commit 8a83f47572
3 changed files with 9 additions and 1 deletions

View File

@ -27,6 +27,12 @@
cmd: ansible-galaxy collection install {{ item }}
loop: "{{ dependencies.ansible_galaxy_collections }}"
- ansible.builtin.command:
cmd: ls ~/.ansible -lashR
register: results
- ansible.builtin.debug:
var: results
- name: Install distro packages
ansible.builtin.apt:
pkg: "{{ dependencies.packages }}"

View File

@ -2,6 +2,7 @@
ansible.builtin.shell:
cmd: /usr/bin/vmtoolsd --cmd "info-get guestinfo.ovfEnv"
register: ovfenv
- name: Parse XML for vApp properties
community.general.xml:
xmlstring: "{{ ovfenv.stdout }}"
@ -10,6 +11,7 @@
xpath: /ns:Environment/ns:PropertySection/ns:Property
content: attribute
register: ovfenv
- name: Assign vApp properties to dictionary
ansible.builtin.set_fact:
vapp: >-

View File

@ -1,4 +1,4 @@
#!/bin/bash
# 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