style: make ansible-lint happier
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
---
|
||||
|
||||
- name: restart garage
|
||||
systemd:
|
||||
- name: Restart garage
|
||||
ansible.builtin.systemd:
|
||||
name: garage
|
||||
enabled: true
|
||||
daemon_reload: true
|
||||
|
@@ -1,7 +1,7 @@
|
||||
---
|
||||
|
||||
- name: install garage
|
||||
get_url:
|
||||
- name: Install garage
|
||||
ansible.builtin.get_url:
|
||||
url: "{{ garage_url }}"
|
||||
dest: "{{ garage_bin }}"
|
||||
owner: root
|
||||
@@ -9,20 +9,22 @@
|
||||
mode: 0755
|
||||
force: true
|
||||
notify:
|
||||
- restart garage
|
||||
- Restart garage
|
||||
|
||||
- name: install garage systemd file
|
||||
template:
|
||||
- name: Install garage systemd file
|
||||
ansible.builtin.template:
|
||||
src: garage.service.j2
|
||||
dest: /etc/systemd/system/garage.service
|
||||
mode: 0644
|
||||
|
||||
- name: put garage.toml conf file
|
||||
template:
|
||||
- name: Put garage.toml conf file
|
||||
ansible.builtin.template:
|
||||
src: garage.toml.j2
|
||||
dest: /etc/garage.toml
|
||||
mode: 0644
|
||||
vars:
|
||||
cluster_group: "{{ group_names | map('regex_search', '.+_cluster') | select('string') | first }}"
|
||||
cluster_group_length: "{{ groups[cluster_group] | reject('search', 'gw') | length }}"
|
||||
garage_replication_mode: "{{ cluster_group_length | int if (cluster_group_length | int) <= 3 else 3 }}"
|
||||
notify:
|
||||
- restart garage
|
||||
- Restart garage
|
||||
|
@@ -1,6 +1,6 @@
|
||||
---
|
||||
|
||||
- name: restart haproxy
|
||||
service:
|
||||
- name: Restart haproxy
|
||||
ansible.builtin.service:
|
||||
name: haproxy
|
||||
state: restarted
|
||||
|
@@ -1,13 +1,14 @@
|
||||
---
|
||||
|
||||
- name: install haproxy package
|
||||
package:
|
||||
- name: Install haproxy package
|
||||
ansible.builtin.package:
|
||||
name: haproxy
|
||||
state: present
|
||||
|
||||
- name: haproxy config
|
||||
template:
|
||||
- name: Haproxy config
|
||||
ansible.builtin.template:
|
||||
src: haproxy.cfg.j2
|
||||
dest: /etc/haproxy/haproxy.cfg
|
||||
mode: 0644
|
||||
notify:
|
||||
- restart haproxy
|
||||
- Restart haproxy
|
||||
|
@@ -1,6 +1,6 @@
|
||||
---
|
||||
|
||||
- name: restart icecast2
|
||||
service:
|
||||
- name: Restart icecast2
|
||||
ansible.builtin.service:
|
||||
name: icecast2
|
||||
state: restarted
|
||||
|
@@ -1,13 +1,14 @@
|
||||
---
|
||||
|
||||
- name: install icecast2
|
||||
package:
|
||||
- name: Install icecast2
|
||||
ansible.builtin.package:
|
||||
name: icecast2
|
||||
state: present
|
||||
|
||||
- name: configuration file
|
||||
template:
|
||||
- name: Configuration file
|
||||
ansible.builtin.template:
|
||||
src: icecast.xml.j2
|
||||
dest: /etc/icecast2/icecast.xml
|
||||
mode: 0644
|
||||
notify:
|
||||
- restart icecast2
|
||||
- Restart icecast2
|
||||
|
@@ -1,6 +1,6 @@
|
||||
---
|
||||
|
||||
- name: restart mailman3
|
||||
service:
|
||||
- name: Restart mailman3
|
||||
ansible.builtin.service:
|
||||
name: mailman3
|
||||
state: restarted
|
||||
|
@@ -1,21 +1,22 @@
|
||||
---
|
||||
|
||||
- name: install mailman3 and dependencies
|
||||
package:
|
||||
- name: Install mailman3 and dependencies
|
||||
ansible.builtin.package:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
loop:
|
||||
- mailman3-full
|
||||
- sqlite3
|
||||
|
||||
- name: put mailman3 config file
|
||||
copy:
|
||||
- name: Put mailman3 config file
|
||||
ansible.builtin.copy:
|
||||
src: ./files/mailman.cfg
|
||||
dest: /etc/mailman3/mailman.cfg
|
||||
notify: restart mailman3
|
||||
mode: 0644
|
||||
notify: Restart mailman3
|
||||
|
||||
- name: start mailman3 service
|
||||
service:
|
||||
- name: Start mailman3 service
|
||||
ansible.builtin.service:
|
||||
name: mailman3
|
||||
state: started
|
||||
enabled: true
|
||||
|
Reference in New Issue
Block a user