# HG changeset patch # User anatofuz # Date 1599029419 -32400 # Node ID a3a179e8fac87669778123bad47aa1919e883d49 # Parent c0313aebc975476aef72038717ed7c96635b510d fix loop-syntax diff -r c0313aebc975 -r a3a179e8fac8 hosts --- a/hosts Wed Sep 02 15:26:10 2020 +0900 +++ b/hosts Wed Sep 02 15:50:19 2020 +0900 @@ -1,4 +1,5 @@ [test] -localhost:2222 +test-fedora + [test:vars] ansible_python_interpreter=/usr/bin/python3 diff -r c0313aebc975 -r a3a179e8fac8 roles/install-firewalld/tasks/main.yml --- a/roles/install-firewalld/tasks/main.yml Wed Sep 02 15:26:10 2020 +0900 +++ b/roles/install-firewalld/tasks/main.yml Wed Sep 02 15:50:19 2020 +0900 @@ -9,9 +9,11 @@ - name: Setting Firewalld become: yes firewalld: - service: {{ item }} + zone: public + service: + - "{{ item }}" permanent: yes - state: enabled + state: enable loop: - http - https diff -r c0313aebc975 -r a3a179e8fac8 roles/install-mariadb/tasks/main.yml --- a/roles/install-mariadb/tasks/main.yml Wed Sep 02 15:26:10 2020 +0900 +++ b/roles/install-mariadb/tasks/main.yml Wed Sep 02 15:50:19 2020 +0900 @@ -2,7 +2,8 @@ - name: install dnf packages become: yes dnf: - name: {{ item }} + name: + - "{{ item }}" state: latest loop: - mariadb diff -r c0313aebc975 -r a3a179e8fac8 roles/install-php/tasks/main.yml --- a/roles/install-php/tasks/main.yml Wed Sep 02 15:26:10 2020 +0900 +++ b/roles/install-php/tasks/main.yml Wed Sep 02 15:50:19 2020 +0900 @@ -1,9 +1,11 @@ - name: install php packages become: yes dnf: - name: {{ item }} + name: + - "{{ item }}" state: latest loop: - php - php-mysqlnd - php-mbstring + - php-fpm diff -r c0313aebc975 -r a3a179e8fac8 roles/restart-handlers/handlers/main.yml --- a/roles/restart-handlers/handlers/main.yml Wed Sep 02 15:26:10 2020 +0900 +++ b/roles/restart-handlers/handlers/main.yml Wed Sep 02 15:50:19 2020 +0900 @@ -13,3 +13,11 @@ name: nginx state: restarted enabled: yes + + +- name: restart_php_fpm + become: yes + systemd: + name: php-fpm + state: restarted + enbaled: yes