Custom harden-linux role

This commit is contained in:
Paul-Henri Froidmont 2018-07-31 01:47:35 +02:00
parent 5d81de3cf9
commit bc0f0c4894
19 changed files with 1293 additions and 37 deletions

View file

@ -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'] }}"