Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Mohamed Alibi
ansible-examples
Commits
000fa67b
Commit
000fa67b
authored
Jul 21, 2016
by
Dave Johnson
Browse files
Merge branch 'master' of github.com:thisdavejohnson/ansible-examples
parents
936164e2
513ad43f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
jboss-standalone/deploy-application.yml
jboss-standalone/deploy-application.yml
+2
-3
jboss-standalone/roles/jboss-standalone/tasks/main.yml
jboss-standalone/roles/jboss-standalone/tasks/main.yml
+8
-0
No files found.
jboss-standalone/deploy-application.yml
View file @
000fa67b
---
# 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
jboss-standalone/roles/jboss-standalone/tasks/main.yml
View file @
000fa67b
...
...
@@ -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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment