Reenable ansible tasks
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Danny Bessems 2021-06-08 17:00:56 +02:00
parent 06d0a44c4d
commit 8adbec57d5
2 changed files with 16 additions and 15 deletions

View File

@ -26,7 +26,7 @@ steps:
sed -i -e "s/<<img-password>>/$${SSH_PASSWORD}/g" \
packer/preseed/UbuntuServer20.04/user-data
- |
yamllint -d "{extends: relaxed, rules: {line-length: disable}}" ansible packer/preseed/UbuntuServer20.04/user-data
yamllint -d "{extends: relaxed, rules: {line-length: disable}}" ansible packer/preseed/UbuntuServer20.04/user-data scripts
- |
packer init -upgrade \
./packer

View File

@ -2,21 +2,22 @@
ansible.builtin.apt:
name: snapd
state: absent
purge: yes
- name: Reload systemd unit configurations
ansible.builtin.systemd:
daemon_reload: yes
# - name: Delete cloud-init package
# ansible.builtin.apt:
# name: cloud-init
# state: absent
# purge: yes
# autoclean: yes
# autoremove: yes
# - name: Delete cloud-init files
# ansible.builtin.file:
# path: "{{ item }}"
# state: absent
# loop:
# - /etc/cloud
# - /var/lib/cloud
- name: Delete cloud-init package
ansible.builtin.apt:
name: cloud-init
state: absent
purge: yes
# autoclean: yes
# autoremove: yes
- name: Delete cloud-init files
ansible.builtin.file:
path: "{{ item }}"
state: absent
loop:
- /etc/cloud
- /var/lib/cloud