Skip to content

Commit

Permalink
Add a playbook to install prerequisites for fixing a broken Netplan c…
Browse files Browse the repository at this point in the history
…onfiguration

See these issues for more information:
- #300
- canonical/cloud-init#4764
  • Loading branch information
jsf9k committed Jan 12, 2024
1 parent 34ca551 commit e315ebe
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/fix-netplan-configuration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
# Install the prerequisites for the user script that fixes the Netplan
# configuration generated by cloud-init from the instance metadata.
#
# See these issues for more details:
# - cisagov/skeleton-packer#300
# - canonical/cloud-init#4764
- hosts: all
name: >-
Install prerequisites for the script that fixes the Netplan
configuration generated by cloud-init from the instance metadata
become: true
become_method: ansible.builtin.sudo
tasks:
- name: Install python3-pyyaml
ansible.builtin.package:
name:
- python3-yaml
3 changes: 3 additions & 0 deletions src/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
- name: Import base image playbook
ansible.builtin.import_playbook: base.yml

- name: Import playbook to fix Netplan configuration
ansible.builtin.import_playbook: fix-netplan-configuration.yml

- name: Import AWS playbook
ansible.builtin.import_playbook: aws.yml

Expand Down

0 comments on commit e315ebe

Please sign in to comment.