aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-08-20 22:37:42 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-08-20 22:37:42 +0200
commitb45c5bd35d60c3b18825d5b098171d4877fcadc3 (patch)
treec13d83e8e98215217c1cf7019649a42973f63e1e /roles
parentuse variables instead facts mostly everywhere (diff)
downloadinfra-ansible-b45c5bd35d60c3b18825d5b098171d4877fcadc3.tar.gz
infra-ansible-b45c5bd35d60c3b18825d5b098171d4877fcadc3.zip
tweak names a bit
Diffstat (limited to 'roles')
-rw-r--r--roles/firewall/tasks/file.yml6
-rw-r--r--roles/letsencrypt/tasks/digitalocean.yml4
2 files changed, 5 insertions, 5 deletions
diff --git a/roles/firewall/tasks/file.yml b/roles/firewall/tasks/file.yml
index a703d3b..5675276 100644
--- a/roles/firewall/tasks/file.yml
+++ b/roles/firewall/tasks/file.yml
@@ -1,8 +1,8 @@
-- name: Create a temporary file
+- name: Create temporary file
ansible.builtin.tempfile:
register: rules_file
-- name: Configure rules in a temporary file
+- name: Configure rules in temporary file
become: true
ansible.builtin.template:
src: '{{ item.src }}'
@@ -18,7 +18,7 @@
# If I simply restart the netfilter-persistent service, it happily restarts,
# effectively ignoring errors in files. That way the operator doesn't get
# feedback if the rules file is malformed.
-- name: Check that the rules are valid
+- name: Check that rules are valid
become: true
ansible.builtin.command:
argv:
diff --git a/roles/letsencrypt/tasks/digitalocean.yml b/roles/letsencrypt/tasks/digitalocean.yml
index bbf9380..6cb1198 100644
--- a/roles/letsencrypt/tasks/digitalocean.yml
+++ b/roles/letsencrypt/tasks/digitalocean.yml
@@ -10,11 +10,11 @@
when:
- lookup('env', 'DIGITALOCEAN_TOKEN') | length <= 0
- - name: Set the token as a fact
+ - name: Set token as fact
ansible.builtin.set_fact:
digitalocean_token: "{{ digitalocean_token.user_input | default(lookup('env', 'DIGITALOCEAN_TOKEN')) }}"
- - name: Fail if the token is invalid
+ - name: Fail if token is invalid
ansible.builtin.fail:
msg: 'DigitalOcean token is invalid'
when: digitalocean_token | length == 0