set-up the role
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
# code: language=ansible
|
||||
---
|
||||
|
||||
# install docker on the machine
|
||||
- name: Install docker and docker compose plugin
|
||||
ansible.builtin.include_role:
|
||||
name: geerlingguy.docker
|
||||
@@ -14,6 +13,33 @@
|
||||
docker_install_compose_plugin: true
|
||||
docker_add_repo: true
|
||||
|
||||
- name: Print all available facts
|
||||
ansible.builtin.debug:
|
||||
var: ansible_facts
|
||||
|
||||
- name: Authenticate against private docker registry
|
||||
community.docker.docker_login:
|
||||
registry_url: "{{ registry_url }}"
|
||||
username: "{{ registry_username }}"
|
||||
password: "{{ registry_password }}"
|
||||
|
||||
- name: Authenticate against docker hub
|
||||
community.docker.docker_login:
|
||||
username: "{{ docker_hub_username }}"
|
||||
password: "{{ docker_hub_token }}"
|
||||
|
||||
|
||||
- name: Create log directory
|
||||
ansible.builtin.file:
|
||||
path: /var/logs/chill
|
||||
state: directory
|
||||
owner: 33
|
||||
group: 33
|
||||
mode: '0444'
|
||||
|
||||
- name: Install traefik
|
||||
ansible.builtin.include_tasks: traefik.yml
|
||||
|
||||
- name: Install individual chill
|
||||
ansible.builtin.include_tasks: chill/main.yml
|
||||
with_items: "{{ chills }}"
|
||||
|
Reference in New Issue
Block a user