ansible base config
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
---
|
||||
- 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
|
||||
Reference in New Issue
Block a user