Commit 000fa67b authored by Dave Johnson's avatar Dave Johnson
Browse files

Merge branch 'master' of github.com:thisdavejohnson/ansible-examples

parents 936164e2 513ad43f
---
# This playbook deploys a simple standalone JBoss server.
# This playbook deploys two simple applications to JBoss server.
- hosts: all
#user: root
roles:
# Optionally, (re)deploy JBoss here
- jboss-standalone
# - jboss-standalone
- java-app
......@@ -41,6 +41,14 @@
when: ansible_distribution_major_version != "7"
notify: restart iptables
- name: Ensure that firewalld is installed
yum: name=firewalld state=present
when: ansible_distribution_major_version == "7"
- name: Ensure that firewalld is started
service: name=firewalld state=started
when: ansible_distribution_major_version == "7"
- name: deploy firewalld rules
firewalld: immediate=yes port={{ item }} state=enabled permanent=yes
when: ansible_distribution_major_version == "7"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment