26 lines
715 B
YAML
26 lines
715 B
YAML
---
|
|
- name: git
|
|
hosts: test
|
|
become: yes
|
|
tasks:
|
|
- name: Add a setting to ~/.gitconfig
|
|
community.general.git_config:
|
|
name: http.sslverify
|
|
scope: global
|
|
value: false
|
|
|
|
- name: portainer docker-compose file
|
|
ansible.builtin.git:
|
|
repo: 'https://git.bitsathy.ac.in/ShankarMounesh/portainer.bitsathy.ac.in.git'
|
|
dest: /srv/portainer.bitsathy.ac.in
|
|
|
|
- name: docker-compose
|
|
hosts: test
|
|
gather_facts: no
|
|
tasks:
|
|
- name: Create and start services
|
|
community.docker.docker_compose:
|
|
project_src: /srv/portainer.bitsathy.ac.in/docker
|
|
pull: yes
|
|
state: absent
|