mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 13:46:59 +01:00
Custom harden-linux role
This commit is contained in:
parent
5d81de3cf9
commit
bc0f0c4894
19 changed files with 1293 additions and 37 deletions
|
|
@ -17,6 +17,7 @@
|
|||
commercial_type: VC1S
|
||||
wait: true
|
||||
tags:
|
||||
- group:k8s
|
||||
- group:k8s_master
|
||||
- group:k8s_etcd
|
||||
- env:{{ k8s_scw_environment }}
|
||||
|
|
@ -33,8 +34,15 @@
|
|||
commercial_type: VC1S
|
||||
wait: true
|
||||
tags:
|
||||
- group:k8s
|
||||
- group:k8s_worker
|
||||
- env:{{ k8s_scw_environment }}
|
||||
loop: "{{ range(1,k8s_scw_worker_nodes_count+1)|list }}"
|
||||
|
||||
- meta: refresh_inventory
|
||||
- name: Refresh inventory
|
||||
meta: refresh_inventory
|
||||
|
||||
- name: Add the instances to known hosts
|
||||
local_action: command sh -c 'ssh-keyscan -t rsa {{ hostvars[item].ansible_host }} >> $HOME/.ssh/known_hosts'
|
||||
with_items: "{{ groups['k8s'] }}"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue