des trucs

This commit is contained in:
Jean-Luc NELET 2024-12-06 17:18:49 +01:00
parent 0a02938dbf
commit 52273993ea
4 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,16 @@
plugin: gcp_compute
zones:
- europe-west4-a
projects:
- tp-1-docker
service_account_file: ./service_account.json
auth_kind: serviceaccount
keyed_groups:
- key: labels
prefix: label
- key: zone
prefix: zone
hostnames:
- name
compose:
ansible_host: networkInterfaces[0].accessConfigs[0].natIP

View File

@ -0,0 +1,5 @@
common_packages:
- vim
- curl
- htop
- net-tools

View File

@ -0,0 +1,20 @@
- name: Install essential packages
ansible.builtin.yum:
name:
- vim
- curl
- htop
- net-tools
state: present
when: ansible_os_family == "RedHat"
- name: Install essential packages on Debian/Ubuntu
ansible.builtin.apt:
name:
- vim
- curl
- htop
- net-tools
state: present
update_cache: yes
when: ansible_os_family == "Debian"

View File

@ -0,0 +1,7 @@
- name : Apply common config
hosts : all
become : yes
var_files :
- group_vars/all.yml
roles :
- common