Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update ansible-do generator playbook to use dzangolab ansible collection #27

Merged
merged 4 commits into from
Jan 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion generators/ansible-do/templates/ansible/stack/ansible.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ host_key_auto_add = True
host_key_checking = False
inventory = ./hosts
retry_files_save_path = ./.ansible-retry
roles_path = ./roles
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@

- name: Install aws-cli
hosts: awscli
roles:
- role: dzangolab.awscli2
tasks:
- name: Import awscli2 from dzangolab collection
ansible.builtin.import_role:
name: dzangolab.ansible.awscli2
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@

- name: Deploy portainer
hosts: all
roles:
- role: dzangolab.docker_portainer
tasks:
- name: Import portainer from dzangolab collection
ansible.builtin.import_role:
name: dzangolab.ansible.docker_portainer
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@

- name: Deploy traefik
hosts: traefik
roles:
- role: dzangolab.docker_traefik
tasks:
- name: Import traefik from dzangolab collection
ansible.builtin.import_role:
name: dzangolab.ansible.docker_traefik
vars:
- traefik__dashboard_basicauth_passwords: ["{{ traefik_dashboard_basicauth_password.stdout }}"]
10 changes: 3 additions & 7 deletions generators/ansible-do/templates/ansible/stack/requirements.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
- src: https://github.com/dzangolab/ansible-docker-portainer
version: "1.3"
name: dzangolab.docker_portainer
- src: https://github.com/dzangolab/ansible-docker-traefik
version: "4.4"
name: dzangolab.docker_traefik
- src: dzangolab.awscli2
collections:
- name: dzangolab.ansible
version: ">=0.1.0"