style: make ansible-lint happier
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: restart php-fpm
|
- name: Restart php-fpm
|
||||||
service:
|
ansible.builtin.service:
|
||||||
name: "php{{ php_version }}-fpm"
|
name: "php{{ php_version }}-fpm"
|
||||||
state: restarted
|
state: restarted
|
||||||
|
@@ -1,28 +1,30 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: install php-fpm
|
- name: Install php-fpm
|
||||||
package:
|
ansible.builtin.package:
|
||||||
name: php-fpm
|
name: php-fpm
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: configure php-fpm
|
- name: Configure php-fpm
|
||||||
template:
|
ansible.builtin.template:
|
||||||
src: www.conf.j2
|
src: www.conf.j2
|
||||||
dest: /etc/php/{{ php_version }}/fpm/pool.d/www.conf
|
dest: /etc/php/{{ php_version }}/fpm/pool.d/www.conf
|
||||||
|
mode: 0644
|
||||||
notify:
|
notify:
|
||||||
- restart php-fpm
|
- Restart php-fpm
|
||||||
|
|
||||||
- name: configure php
|
- name: Configure php
|
||||||
template:
|
ansible.builtin.template:
|
||||||
src: php.ini.j2
|
src: php.ini.j2
|
||||||
dest: /etc/php/{{ php_version }}/fpm/php.ini
|
dest: /etc/php/{{ php_version }}/fpm/php.ini
|
||||||
|
mode: 0644
|
||||||
notify:
|
notify:
|
||||||
- restart php-fpm
|
- Restart php-fpm
|
||||||
|
|
||||||
- name: install lib for php
|
- name: Install lib for php
|
||||||
package:
|
ansible.builtin.package:
|
||||||
name: "php-{{ item }}"
|
name: "php-{{ item }}"
|
||||||
state: present
|
state: present
|
||||||
loop: "{{ php_modules }}"
|
loop: "{{ php_modules }}"
|
||||||
notify:
|
notify:
|
||||||
- restart php-fpm
|
- Restart php-fpm
|
||||||
|
@@ -1,14 +1,18 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: postmap virtual-regexp
|
- name: Postmap virtual-regexp
|
||||||
command: postmap /etc/postfix/virtual-regexp
|
ansible.builtin.command:
|
||||||
listen: "postmap files"
|
cmd: postmap /etc/postfix/virtual-regexp
|
||||||
|
changed_when: true
|
||||||
|
listen: "Postmap files"
|
||||||
|
|
||||||
- name: postmap transport
|
- name: Postmap transport
|
||||||
command: postmap /etc/postfix/transport
|
ansible.builtin.command:
|
||||||
listen: "postmap files"
|
cmd: postmap /etc/postfix/transport
|
||||||
|
changed_when: true
|
||||||
|
listen: "Postmap files"
|
||||||
|
|
||||||
- name: restart postfix
|
- name: Restart postfix
|
||||||
service:
|
ansible.builtin.service:
|
||||||
name: postfix
|
name: postfix
|
||||||
state: restarted
|
state: restarted
|
||||||
|
@@ -1,38 +1,40 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: install postfix
|
- name: Install postfix
|
||||||
package:
|
ansible.builtin.package:
|
||||||
name: postfix
|
name: postfix
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: install mailutils
|
- name: Install mailutils
|
||||||
package:
|
ansible.builtin.package:
|
||||||
name: mailutils
|
name: mailutils
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: main configuration files
|
- name: Main configuration files
|
||||||
copy:
|
ansible.builtin.copy:
|
||||||
src: "./files/{{ item }}"
|
src: "./files/{{ item }}"
|
||||||
dest: "/etc/postfix/{{ item }}"
|
dest: "/etc/postfix/{{ item }}"
|
||||||
|
mode: 0644
|
||||||
loop:
|
loop:
|
||||||
- main.cf
|
- main.cf
|
||||||
- master.cf
|
- master.cf
|
||||||
notify:
|
notify:
|
||||||
- restart postfix
|
- Restart postfix
|
||||||
|
|
||||||
- name: map files
|
- name: Map files
|
||||||
copy:
|
ansible.builtin.copy:
|
||||||
src: "./files/{{ item }}"
|
src: "./files/{{ item }}"
|
||||||
dest: "/etc/postfix/{{ item }}"
|
dest: "/etc/postfix/{{ item }}"
|
||||||
|
mode: 0644
|
||||||
loop:
|
loop:
|
||||||
- transport
|
- transport
|
||||||
- virtual-regexp
|
- virtual-regexp
|
||||||
notify:
|
notify:
|
||||||
- postmap files
|
- Postmap files
|
||||||
- restart postfix
|
- Restart postfix
|
||||||
|
|
||||||
- name: mail generation script
|
- name: Mail generation script
|
||||||
copy:
|
ansible.builtin.copy:
|
||||||
src: ./files/generate_email.sh
|
src: ./files/generate_email.sh
|
||||||
dest: /usr/local/bin/generate_email.sh
|
dest: /usr/local/bin/generate_email.sh
|
||||||
owner: root
|
owner: root
|
||||||
|
Reference in New Issue
Block a user