3 Commits

Author SHA1 Message Date
8a83f47572 Redirect error output;Add debugging;Housekeeping
All checks were successful
continuous-integration/drone/push Build is passing
2022-06-29 09:06:13 +02:00
a3bbf88ce3 Rename file 2022-06-29 08:54:36 +02:00
5e0cebf733 Fix linting error 2022-06-29 08:00:02 +02:00
5 changed files with 9 additions and 2 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

@@ -4,4 +4,3 @@
src: /dev/sdb
fstype: ext4
state: mounted

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