-
Notifications
You must be signed in to change notification settings - Fork 0
/
ansible.yaml
38 lines (38 loc) · 994 Bytes
/
ansible.yaml
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
---
- hosts: both
tasks:
- name: "update hostnames"
hostname:
name: "test-power-podman"
- 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 html into home
copy:
src: index.html
dest: /usr/local/apache2/htdocs/
- name: Copying svg into home
copy:
src: ansible.svg
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/