From ed5a18a096d6fcfbb21db058e8102de1389babf7 Mon Sep 17 00:00:00 2001 From: Adrien Waksberg Date: Sun, 15 Aug 2021 12:38:44 +0200 Subject: [PATCH] chore: use FQCN for module name --- CHANGELOG.md | 1 + tasks/main.yml | 13 +++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2824c38..dcb26a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/) ### Changed +- chore: use FQCN for module name - test: replace kitchen to molecule ## v1.0.0 - 2019-11-09 diff --git a/tasks/main.yml b/tasks/main.yml index 8fc008a..5e45eeb 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,14 +1,15 @@ --- - name: install Haproxy - package: - name: haproxy + ansible.builtin.package: + name: + - haproxy retries: 2 register: result until: result is succeeded tags: haproxy - name: copy ssl certificates - copy: + ansible.builtin.copy: content: '{{ item.value }}' dest: /etc/haproxy/{{ item.key }}.pem owner: root @@ -19,7 +20,7 @@ tags: haproxy - name: copy IPs lists - copy: + ansible.builtin.copy: content: "{{ item.value|join('\n') }}" dest: '/etc/haproxy/{{ item.key }}.list' owner: root @@ -32,7 +33,7 @@ tags: haproxy - name: copy config file - template: + ansible.builtin.template: src: haproxy.cfg.j2 dest: /etc/haproxy/haproxy.cfg owner: root @@ -43,7 +44,7 @@ tags: haproxy - name: enable ans start service - service: + ansible.builtin.service: name: haproxy enabled: true state: started