From a687a2dec58cfa8a62df75db8eef0e9081b7e4e0 Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Sat, 10 Jun 2023 22:59:54 -0400 Subject: [PATCH] Latest --- .config/molecule/config.yml | 23 -------------- .config/molecule/handlers/main.yml | 51 ------------------------------ 2 files changed, 74 deletions(-) delete mode 100644 .config/molecule/config.yml delete mode 100644 .config/molecule/handlers/main.yml diff --git a/.config/molecule/config.yml b/.config/molecule/config.yml deleted file mode 100644 index 6bd384bf..00000000 --- a/.config/molecule/config.yml +++ /dev/null @@ -1,23 +0,0 @@ ---- -dependency: - name: shell - command: | - echo "" -provisioner: - name: ansible - options: - vvv: true - playbooks: - converge: ../converge.yml - prepare: ../../.config/molecule/prepare.yml - docker: - create: ../../.config/molecule/docker.create.yml - destroy: ../../.config/molecule/docker.destroy.yml - gce: - create: ../../.config/molecule/gce.create.yml - destroy: ../../.config/molecule/gce.destroy.yml - vagrant: - create: ../../.config/molecule/vagrant.create.yml - destroy: ../../.config/molecule/vagrant.destroy.yml -verifier: - name: ansible diff --git a/.config/molecule/handlers/main.yml b/.config/molecule/handlers/main.yml deleted file mode 100644 index 8f760e4f..00000000 --- a/.config/molecule/handlers/main.yml +++ /dev/null @@ -1,51 +0,0 @@ ---- -# yamllint disable rule:line-length -- name: Populate instance config dict Linux - ansible.builtin.set_fact: - instance_conf_dict: - instance: '{{ instance_info.name }}' - - address: '{{ instance_info.networkInterfaces.0.accessConfigs.0.natIP if molecule_yml.driver.external_access else instance_info.networkInterfaces.0.networkIP }}' - user: "{{ lookup('env','USER') }}" - port: '22' - identity_file: '{{ ssh_identity_file }}' - instance_os_type: '{{ molecule_yml.driver.instance_os_type }}' - - loop: '{{ server.results }}' - loop_control: - loop_var: instance_info - no_log: true - register: instance_conf_dict - -- name: Populate instance config dict Windows - ansible.builtin.set_fact: - instance_conf_dict: - instance: '{{ instance_info.name }}' - - address: '{{ instance_info.networkInterfaces.0.accessConfigs.0.natIP if molecule_yml.driver.external_access else instance_info.networkInterfaces.0.networkIP }}' - user: molecule_usr - password: '{{ instance_info.password }}' - port: '{{ instance_info.winrm_port | default(5986) }}' - winrm_transport: "{{ molecule_yml.driver.winrm_transport | default('ntlm') }}" - winrm_server_cert_validation: "{{ molecule_yml.driver.winrm_server_cert_validation | default('ignore') }}" - instance_os_type: '{{ molecule_yml.driver.instance_os_type }}' - - loop: '{{ win_instances }}' - loop_control: - loop_var: instance_info - no_log: true - register: instance_conf_dict - -- name: Wipe out instance config - ansible.builtin.set_fact: - instance_conf: {} - -- name: Convert instance config dict to a list - ansible.builtin.set_fact: - instance_conf: "{{ instance_conf_dict.results | map(attribute='ansible_facts.instance_conf_dict') | list }}" - -- name: Dump instance config - ansible.builtin.copy: - content: '{{ instance_conf }}' - dest: '{{ molecule_instance_config }}' - mode: '0600'