-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ansible: replace test-digitalocean-fedora38-x64-1 (#3834)
Replace test-digitalocean-fedora38-x64-1 with Fedora 40. Update the Ansible scripts to fix the DNS settings on DigitalOcean-hosted Fedora 40 machines. Refs: #3350 Refs: #3829 (comment)
- Loading branch information
1 parent
d4ad79f
commit 2986d44
Showing
4 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[Resolve] | ||
DNS=1.1.1.1#1dot1dot1dot1.cloudflare-dns.com 1.0.0.1#1dot1dot1dot1.cloudflare-dns.com 2606:4700:4700::1111#1dot1dot1dot1.cloudflare-dns.com 2606:4700:4700::1001#1dot1dot1dot1.cloudflare-dns.com | ||
DNSSEC=yes | ||
DNSOverTLS=yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
ansible/roles/bootstrap/tasks/partials/digitalocean/fedora40.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
|
||
# DigitalOcean Fedora 40 | ||
|
||
- name: "{{ provider }} : create systemd-resolved configuration directory" | ||
ansible.builtin.file: | ||
state: directory | ||
path: /etc/systemd/resolved.conf.d | ||
|
||
- name: "{{ provider }} : create DNS settings file" | ||
ansible.builtin.copy: | ||
dest: /etc/systemd/resolved.conf.d/cloudflare.conf | ||
src: "{{ os }}-resolv.conf" | ||
register: resolved | ||
|
||
- name: "{{ provider }} : restart systemd-resolved" | ||
ansible.builtin.service: | ||
name: systemd-resolved | ||
state: restarted | ||
when: resolved.changed | ||
|
||
- name: "{{ provider }} : reboot machine" | ||
ansible.builtin.reboot: | ||
when: resolved.changed |