des trucs
This commit is contained in:
parent
0a02938dbf
commit
52273993ea
@ -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
|
@ -0,0 +1,5 @@
|
|||||||
|
common_packages:
|
||||||
|
- vim
|
||||||
|
- curl
|
||||||
|
- htop
|
||||||
|
- net-tools
|
20
tp-cloud/ansible/roles/common/tasks/main.yml
Normal file
20
tp-cloud/ansible/roles/common/tasks/main.yml
Normal 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"
|
@ -0,0 +1,7 @@
|
|||||||
|
- name : Apply common config
|
||||||
|
hosts : all
|
||||||
|
become : yes
|
||||||
|
var_files :
|
||||||
|
- group_vars/all.yml
|
||||||
|
roles :
|
||||||
|
- common
|
Loading…
Reference in New Issue
Block a user