diff options
author | Grégory Charot <buixor@gmail.com> | 2016-03-24 20:18:12 +0300 |
---|---|---|
committer | gcharot <buixor@gmail.com> | 2016-07-21 18:11:54 +0300 |
commit | 0928b6c12cc0a457cef7bda2e091fa41cd1338dc (patch) | |
tree | 04bdd64740aa470bd366b3661a497d1236988121 /wordpress-nginx_rhel7 | |
parent | 375481a20a8821233257c92c493b3b0f96d7e78c (diff) |
Install and start firewalld
By default firewalld is not installed (CentOS Cloud image), the playbook drops this error, this patch aims to fix the issue :
TASK: [mariadb | insert firewalld rule] ***************************************
failed: [localhost] => {"failed": true, "parsed": false}
failed=True msg='firewalld required for this module'
OpenSSH_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 56: Applying options for *
debug1: auto-mux: Trying existing master
debug1: mux_client_request_session: master session id: 2
Shared connection to localhost closed.
FATAL: all hosts have already failed -- aborting
PLAY RECAP ********************************************************************
to retry, use: --limit @/root/site.retry
localhost : ok=10 changed=9 unreachable=0 failed=1
Diffstat (limited to 'wordpress-nginx_rhel7')
-rw-r--r-- | wordpress-nginx_rhel7/roles/common/tasks/main.yml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/wordpress-nginx_rhel7/roles/common/tasks/main.yml b/wordpress-nginx_rhel7/roles/common/tasks/main.yml index b99c0bd..7bf0738 100644 --- a/wordpress-nginx_rhel7/roles/common/tasks/main.yml +++ b/wordpress-nginx_rhel7/roles/common/tasks/main.yml @@ -16,3 +16,9 @@ - name: Create the GPG key for REMI copy: src=RPM-GPG-KEY-remi dest=/etc/pki/rpm-gpg + +- name: Install Firewalld + yum: name=firewalld state=present + +- name: Firewalld service state + service: name=firewalld state=started enabled=yes |