diff options
author | Matthew Fennell <matthew@fennell.dev> | 2025-08-10 21:20:24 +0100 |
---|---|---|
committer | Matthew Fennell <matthew@fennell.dev> | 2025-08-10 21:20:24 +0100 |
commit | b4e956593b393884598e7d8b177463e08224c970 (patch) | |
tree | 10ca2fcd239e63f1b05ea8ca672f0f46b5045547 | |
parent | 5fcc41bcda58ad02ee6ca0d0e1d518ee988b23e7 (diff) |
Disable cloud-init
I want ansible to take full control of managing /etc/hosts, hostname
etc. I think it is most convenient to disable cloud-init entirely, to
prevent contention between ansible and cloud-init.
-rw-r--r-- | playbook.yaml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/playbook.yaml b/playbook.yaml index 511b30a..06f75e0 100644 --- a/playbook.yaml +++ b/playbook.yaml @@ -51,6 +51,16 @@ group: admin mode: preserve + - name: Ensure cloud-init is disabled + ansible.builtin.copy: + content: "" + dest: /etc/cloud/cloud-init.disabled + force: false + owner: root + group: root + mode: "0644" + become: true + - name: Retrieve DANE hash ansible.builtin.shell: cmd: > |