Skip to content

Commit

Permalink
Added play2
Browse files Browse the repository at this point in the history
Added play2 fix
  • Loading branch information
directdevops committed Dec 23, 2020
1 parent 776f933 commit 9122d82
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
13 changes: 12 additions & 1 deletion Dec20/Inventories/hosts
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
[centos]
172.31.32.83

[ubuntu]
localhost
172.31.45.255
172.31.32.83

[webserver]
172.31.32.83
172.31.45.255

[appserver]
172.31.45.255

15 changes: 14 additions & 1 deletion Dec20/Inventories/scenario1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,17 @@
- name: install tree
package:
name: tree
state: present
state: present
- name: install apache on centos
hosts: centos
become: yes
tasks:
- name: install apache
package:
name: httpd
state: present
- name: ensure apache is running
service:
name: httpd
enabled: yes
state: started

0 comments on commit 9122d82

Please sign in to comment.