terraform-k8s/roles/podman/tasks/main.yml

32 lines
878 B
YAML

---
# - name: subcribe to 'rhel-7-server-rpms' and 'rhel-7-server-extras-rpms' repos
# shell: subscription-manager repos --enable rhel-7-server-rpms --enable rhel-7-server-extras-rpms
# become: yes
- name: install podman
yum:
name:
- podman
state: present
become: yes
- name:
shell: |
podman run \
--volume=/var/run/docker.sock:/var/run/docker.sock \
--volume=/var/lib/drone:/data \
--env=DRONE_GITEA_SERVER=http://192.168.99.100:32782 \
--env=DRONE_GIT_ALWAYS_AUTH=false \
--env=DRONE_RUNNER_CAPACITY=2 \
--env=DRONE_SERVER_HOST=192.168.99.100 \
--env=DRONE_SERVER_PROTO=http \
--env=DRONE_TLS_AUTOCERT=false \
--publish=80:80 \
--publish=443:443 \
--restart=always \
--detach=true \
--name=drone \
--dns=192.168.2.196 \
drone/drone:1.0.0-rc.5
become: yes