From 7661df74c158f9e4d7ef02ff859fc43afe4c0be8 Mon Sep 17 00:00:00 2001 From: "Tobias J. Endres" Date: Tue, 2 Sep 2025 17:50:37 +0200 Subject: [PATCH] feat: Configure playbook to run common role on all hosts --- inventory/hosts.yml | 24 +++++++++--------------- playbooks/main.yml | 22 +++------------------- 2 files changed, 12 insertions(+), 34 deletions(-) diff --git a/inventory/hosts.yml b/inventory/hosts.yml index 9b223a4..8125268 100644 --- a/inventory/hosts.yml +++ b/inventory/hosts.yml @@ -1,16 +1,10 @@ all: - children: - oracle-cloud-instances: - hosts: - sublimePorte: - ansible_host: 130.162.231.152 - ansible_user: ubuntu - ansible_ssh_private_key_file: ~/.ssh/ora-cloud/sublime-key.key - webservices: - ansible_host: 79.76.127.110 - ansible_user: ubuntu - ansible_ssh_private_key_file: ~/.ssh/ora-cloud/sublime-key.key - yunohost: - ansible_host: 141.147.24.166 - ansible_user: ubuntu - ansible_ssh_private_key_file: ~/.ssh/ora-cloud/sublime-key.key + hosts: + Mulder: + ansible_host: 130.162.234.190 + ansible_user: ubuntu + ansible_ssh_private_key_file: secrets/sublime-key.key + Scully: + ansible_host: 92.5.121.208 + ansible_user: ubuntu + ansible_ssh_private_key_file: secrets/sublime-key.key \ No newline at end of file diff --git a/playbooks/main.yml b/playbooks/main.yml index 7fe8e7f..3d9ba43 100644 --- a/playbooks/main.yml +++ b/playbooks/main.yml @@ -1,21 +1,5 @@ -- name: Set up reverse Proxy - hosts: sublimePorte +- name: Apply common role to all hosts + hosts: all become: true roles: - # - common - # - zsh_with_style - # - docker - # - portainer - #- network - # - containers -- name: Set up webservices - hosts: webservices - become: true - roles: - - gitea - # - authentik - # - common - # - zsh_with_style - # - docker - # - portainer - # - containers + - common \ No newline at end of file