-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
97 lines (86 loc) · 3 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<!DOCTYPE html>
<html>
<head>
<title>ansible</title>
</head>
<body>
<div>
<img src="ansible.svg">
</div>
<h1>files</h1>
<h3>ansible.yaml</h3>
<pre>
---
- hosts: power
tasks:
- name: "update hostnames"
hostname:
name: "test-ppc-docker"
- name: installing podman
package:
name: "podman"
state: present
- name: Pull httpd image
containers.podman.podman_image:
name: docker.io/library/httpd
- name: Pull coredns image
containers.podman.podman_image:
name: docker.io/coredns/coredns
- name: Pull nginx image
containers.podman.podman_image:
name: docker.io/bitnami/nginx
- name: Copying file into home
copy:
src: index.html
dest: /usr/local/apache2/htdocs/
- name: run httpd container
containers.podman.podman_container:
name: httpd
image: docker.io/library/httpd
state: started
detach: true
exposed_ports:
- 80
ports:
- 80:80
volumes: /usr/local/apache2/htdocs/:/usr/local/apache2/htdocs/
</pre>
<h3>ansible.cfg</h3>
<pre>
[defaults]
remote_user = temp
host_key_checking = false
deprecation_warning = false
[privilege_escalation]
become = True
become_method = sudo
become_user = root
become_ask_pass = False
</pre>
<h2>run playbook</h2>
<h3>ansible-playbook ansible.yaml</h3>
<pre>
PLAY [power] ***********************************************************************************************************
TASK [Gathering Facts] *************************************************************************************************
ok: [test-ppc-docker]
TASK [update hostnames] ************************************************************************************************
ok: [test-ppc-docker]
TASK [installing podman] ***********************************************************************************************
ok: [test-ppc-docker]
TASK [Pull httpd image] ************************************************************************************************
ok: [test-ppc-docker]
TASK [Pull coredns image] **********************************************************************************************
ok: [test-ppc-docker]
TASK [Pull nginx image] ************************************************************************************************
ok: [test-ppc-docker]
TASK [Copying html into home] ******************************************************************************************
ok: [test-ppc-docker]
TASK [Copying svg into home] *******************************************************************************************
ok: [test-ppc-docker]
TASK [run httpd container] *********************************************************************************************
ok: [test-ppc-docker]
PLAY RECAP *************************************************************************************************************
test-ppc-docker : ok=9 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
</pre>
</body>
</html>