chore: use FQCN for module name
This commit is contained in:
parent
4f486e69fe
commit
ed5a18a096
2 changed files with 8 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue