This commit is contained in:
parent
06d0a44c4d
commit
8adbec57d5
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user