kubespray 2.24 추가
This commit is contained in:
15
roles/bastion-ssh-config/molecule/default/converge.yml
Normal file
15
roles/bastion-ssh-config/molecule/default/converge.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
---
|
||||
- name: Converge
|
||||
hosts: all
|
||||
become: true
|
||||
gather_facts: false
|
||||
roles:
|
||||
- role: bastion-ssh-config
|
||||
tasks:
|
||||
- name: Copy config to remote host
|
||||
copy:
|
||||
src: "{{ playbook_dir }}/{{ ssh_bastion_confing__name }}"
|
||||
dest: "{{ ssh_bastion_confing__name }}"
|
||||
owner: "{{ ansible_user }}"
|
||||
group: "{{ ansible_user }}"
|
||||
mode: 0644
|
||||
31
roles/bastion-ssh-config/molecule/default/molecule.yml
Normal file
31
roles/bastion-ssh-config/molecule/default/molecule.yml
Normal file
@@ -0,0 +1,31 @@
|
||||
---
|
||||
role_name_check: 1
|
||||
dependency:
|
||||
name: galaxy
|
||||
driver:
|
||||
name: vagrant
|
||||
provider:
|
||||
name: libvirt
|
||||
platforms:
|
||||
- name: bastion-01
|
||||
box: generic/ubuntu2004
|
||||
cpus: 1
|
||||
memory: 512
|
||||
provider_options:
|
||||
driver: kvm
|
||||
provisioner:
|
||||
name: ansible
|
||||
config_options:
|
||||
defaults:
|
||||
callbacks_enabled: profile_tasks
|
||||
timeout: 120
|
||||
inventory:
|
||||
hosts:
|
||||
all:
|
||||
hosts:
|
||||
children:
|
||||
bastion:
|
||||
hosts:
|
||||
bastion-01:
|
||||
verifier:
|
||||
name: testinfra
|
||||
Reference in New Issue
Block a user