From a14a183e8181e6d3a8604822f6d0773328a79e13 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 9 Jun 2021 14:11:30 +0200 Subject: move acmtool roles to use FQCN --- roles/acmetool/base/tasks/main.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'roles/acmetool/base/tasks/main.yml') diff --git a/roles/acmetool/base/tasks/main.yml b/roles/acmetool/base/tasks/main.yml index 5ad03257..5f2ae4ab 100644 --- a/roles/acmetool/base/tasks/main.yml +++ b/roles/acmetool/base/tasks/main.yml @@ -1,34 +1,34 @@ --- - name: check if acmetool package is new enough - debug: + ansible.builtin.debug: msg: "Check distribution_release" failed_when: (ansible_distribution == 'Debian' and (ansible_distribution_major_version | int) < 9) or (ansible_distribution == 'Ubuntu' and (ansible_distribution_major_version | int) < 17) or (ansible_distribution != 'Debian' and ansible_distribution != 'Ubuntu') - name: install needed packages - apt: + ansible.builtin.apt: name: - acmetool - "{{ python_basename }}-openssl" state: present - name: create initial directory structure - command: acmetool --batch + ansible.builtin.command: acmetool --batch args: creates: /var/lib/acme/conf - name: create acmetool response file - template: + ansible.builtin.template: src: responses.j2 dest: /var/lib/acme/conf/responses - name: create non-standard acmetool webroot path - file: + ansible.builtin.file: name: "{{ acmetool_challenge_webroot_path }}" state: directory when: acmetool_challenge_webroot_path is defined - name: run quickstart to create account and default target configuration - command: acmetool --batch quickstart + ansible.builtin.command: acmetool --batch quickstart environment: http_proxy: "{{ acmetool_http_proxy | default('') }}" https_proxy: "{{ acmetool_https_proxy | default('') }}" @@ -36,10 +36,10 @@ creates: /var/lib/acme/conf/target - name: generate selfsigned interim certificate - include_tasks: selfsigned.yml + ansible.builtin.include_tasks: selfsigned.yml - name: install service reload configuration - template: + ansible.builtin.template: src: acme-reload.j2 dest: /etc/default/acme-reload owner: root @@ -48,17 +48,17 @@ when: acmetool_reload_services is defined - name: create system unit snippet directory - file: + ansible.builtin.file: path: /etc/systemd/system/acmetool.service.d/ state: directory - name: install systemd unit snippet - template: + ansible.builtin.template: src: systemd-override.conf.j2 dest: /etc/systemd/system/acmetool.service.d/override.conf - name: enable/start systemd timer for acmetool - systemd: + ansible.builtin.systemd: name: acmetool.timer state: started enabled: yes -- cgit v1.2.3