Skip to content

Commit

Permalink
Disable cloud-final and cloud-config drop-ins for Flatcar
Browse files Browse the repository at this point in the history
  • Loading branch information
hrak committed Mar 3, 2023
1 parent 4e19a1b commit 55516cd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions images/capi/ansible/roles/providers/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
file:
path: /etc/systemd/system/cloud-final.service.d
state: directory
when: ansible_os_family != "Flatcar"

- name: Create cloud-final boot order drop in file
copy:
Expand All @@ -62,11 +63,13 @@
owner: root
group: root
mode: "0644"
when: ansible_os_family != "Flatcar"

- name: Creates unit file directory for cloud-config
file:
path: /etc/systemd/system/cloud-config.service.d
state: directory
when: ansible_os_family != "Flatcar"

- name: Create cloud-config boot order drop in file
copy:
Expand All @@ -75,6 +78,7 @@
owner: root
group: root
mode: "0644"
when: ansible_os_family != "Flatcar"

# Some OS might disable cloud-final service on boot (rhel 7).
# Enable all cloud-init services on boot.
Expand Down

0 comments on commit 55516cd

Please sign in to comment.