From aa0fddae7e97d1cef650d04ad43babd862d12969 Mon Sep 17 00:00:00 2001 From: Bas Meijer Date: Thu, 21 Nov 2024 22:20:29 +0100 Subject: [PATCH] Install Applications --- inventory/dev/group_vars/semaphore.yml | 5 +++++ provision.yml | 28 +++++++++++++++++++------- roles/requirements.yml | 1 - 3 files changed, 26 insertions(+), 8 deletions(-) diff --git a/inventory/dev/group_vars/semaphore.yml b/inventory/dev/group_vars/semaphore.yml index 8a9f869..8b7c7d0 100644 --- a/inventory/dev/group_vars/semaphore.yml +++ b/inventory/dev/group_vars/semaphore.yml @@ -5,4 +5,9 @@ nginx_add_repo: false ssh_passphrase: "SomethingYouNeedToUse" +use_docker: true +use_podman: false +use_opentofu: true +use_powershell: false +use_terraform: false terraform_ver: 1.9.8 diff --git a/provision.yml b/provision.yml index f8d9799..a513326 100755 --- a/provision.yml +++ b/provision.yml @@ -29,13 +29,27 @@ hosts: semaphore become: true gather_facts: true - roles: - - role: andrewrothstein.opentofu - tags: [tools, opentofu] - - role: andrewrothstein.powershell - tags: [tools, powershell] - - role: andrewrothstein.terraform - tags: [tools, terraform] + tags: [tools] + tasks: + - name: Install Docker + when: use_docker | bool + ansible.builtin.include_role: + name: geerlingguy.docker + + - name: Install OpenTofu + when: use_opentofu | bool + ansible.builtin.include_role: + name: andrewrothstein.opentofu + + - name: Install Powershell + when: use_powershell | bool + ansible.builtin.include_role: + name: andrewrothstein.powershell + + - name: Install Terraform + when: use_terraform | bool + ansible.builtin.include_role: + name: andrewrothstein.terraform - name: Semaphore in Systemd hosts: semaphore diff --git a/roles/requirements.yml b/roles/requirements.yml index dd0689d..0698fc3 100644 --- a/roles/requirements.yml +++ b/roles/requirements.yml @@ -4,7 +4,6 @@ roles: - src: andrewrothstein.powershell - src: andrewrothstein.terraform - src: geerlingguy.docker - name: docker - src: bbaassssiiee.postgres_ssl name: postgres version: 1.1.1