chore: use FQCN for module name

This commit is contained in:
Adrien Waksberg 2021-08-15 12:38:44 +02:00 committed by Adrien Waksberg
parent 4f486e69fe
commit ed5a18a096
2 changed files with 8 additions and 6 deletions

View file

@ -12,6 +12,7 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
### Changed ### Changed
- chore: use FQCN for module name
- test: replace kitchen to molecule - test: replace kitchen to molecule
## v1.0.0 - 2019-11-09 ## v1.0.0 - 2019-11-09

View file

@ -1,14 +1,15 @@
--- ---
- name: install Haproxy - name: install Haproxy
package: ansible.builtin.package:
name: haproxy name:
- haproxy
retries: 2 retries: 2
register: result register: result
until: result is succeeded until: result is succeeded
tags: haproxy tags: haproxy
- name: copy ssl certificates - name: copy ssl certificates
copy: ansible.builtin.copy:
content: '{{ item.value }}' content: '{{ item.value }}'
dest: /etc/haproxy/{{ item.key }}.pem dest: /etc/haproxy/{{ item.key }}.pem
owner: root owner: root
@ -19,7 +20,7 @@
tags: haproxy tags: haproxy
- name: copy IPs lists - name: copy IPs lists
copy: ansible.builtin.copy:
content: "{{ item.value|join('\n') }}" content: "{{ item.value|join('\n') }}"
dest: '/etc/haproxy/{{ item.key }}.list' dest: '/etc/haproxy/{{ item.key }}.list'
owner: root owner: root
@ -32,7 +33,7 @@
tags: haproxy tags: haproxy
- name: copy config file - name: copy config file
template: ansible.builtin.template:
src: haproxy.cfg.j2 src: haproxy.cfg.j2
dest: /etc/haproxy/haproxy.cfg dest: /etc/haproxy/haproxy.cfg
owner: root owner: root
@ -43,7 +44,7 @@
tags: haproxy tags: haproxy
- name: enable ans start service - name: enable ans start service
service: ansible.builtin.service:
name: haproxy name: haproxy
enabled: true enabled: true
state: started state: started