-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added auto-update task, moved hetzner cloud server default values to …
…group_vars, added missing distributions (#4) * added auto-update task * moved hetzner cloud server defaults to group_vars, added more distributions * updated submodules
- Loading branch information
Showing
9 changed files
with
64 additions
and
19 deletions.
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 |
---|---|---|
@@ -1,5 +1,12 @@ | ||
--- | ||
worker_user: "worker" | ||
worker_user: worker | ||
|
||
# hcloud defaults for cloud server | ||
server_type: cx11 | ||
location: hel1 | ||
image: ubuntu-22.04 | ||
enable_ipv4: false | ||
enable_ipv6: true | ||
|
||
# features / roles to install | ||
install_nginx: false |
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,3 @@ | ||
--- | ||
all: | ||
hosts: |
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
Submodule ansible-role-nginx
updated
4 files
+0 −2 | defaults/main.yaml | |
+1 −0 | tasks/acmesh_install.yaml | |
+0 −2 | tasks/create-vhost.yaml | |
+24 −2 | tasks/main.yaml |
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,29 @@ | ||
--- | ||
- name: "Install unattended upgrades" | ||
ansible.builtin.package: | ||
name: unattended-upgrades | ||
state: present | ||
when: ansible_pkg_mgr == 'apt' | ||
become: true | ||
|
||
- name: "Install dnf-automatic" | ||
when: ansible_pkg_mgr == 'dnf' | ||
block: | ||
- name: "Install dnf-automatic" | ||
ansible.builtin.package: | ||
name: dnf-automatic | ||
state: present | ||
become: true | ||
|
||
- name: "Create dnf-automatic configuration file" | ||
ansible.builtin.template: | ||
src: ../templates/dnf-automatic.conf.j2 | ||
dest: /etc/dnf/dnf-automatic.conf | ||
become: true | ||
|
||
- name: "Enable and start dnf-automatic timer" | ||
ansible.builtin.systemd: | ||
name: dnf-automatic.timer | ||
enabled: yes | ||
state: started | ||
become: true |
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,3 @@ | ||
[commands] | ||
apply_updates = yes | ||
download_updates = yes |