From b45c5bd35d60c3b18825d5b098171d4877fcadc3 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 20 Aug 2023 22:37:42 +0200 Subject: tweak names a bit --- roles/firewall/tasks/file.yml | 6 +++--- roles/letsencrypt/tasks/digitalocean.yml | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'roles') 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 -- cgit v1.2.3