Upload Ansible Files
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
- name: Install Docker-Compose.io
|
||||
gather_facts: false
|
||||
hosts: test-host
|
||||
tasks:
|
||||
- name: Install Git Sudo Curl
|
||||
apt:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
update_cache: yes
|
||||
with_items:
|
||||
- apt-transport-https
|
||||
- ca-certificates
|
||||
- curl
|
||||
- software-properties-common
|
||||
register: install_stdot
|
||||
|
||||
- name: Install Debug
|
||||
debug:
|
||||
var: install_stdot
|
||||
|
||||
- name: Install docker-compose
|
||||
ansible.builtin.shell: curl -sSL https://get.docker.com/ | CHANNEL=stable sh
|
||||
register: docker_compose_log
|
||||
|
||||
- name: Debug Install docker-compose
|
||||
debug:
|
||||
var: docker_compose_log
|
||||
|
||||
- name: Check Service is Enable
|
||||
service:
|
||||
name: docker
|
||||
enabled: yes
|
||||
state: restarted
|
||||
|
||||
Reference in New Issue
Block a user