fix: autodeploy fix

This commit is contained in:
Xan Manning 2022-06-15 21:36:14 +00:00
parent 5bebced657
commit e6cb2a91e8
3 changed files with 5 additions and 6 deletions

View file

@ -41,7 +41,7 @@ jobs:
- distro: geerlingguy/docker-fedora34-ansible:latest
scenario: highavailabilitydb
prebuilt: 'true'
- distro: geerlingguy/docker-debian10-ansible:latest
- distro: geerlingguy/docker-fedora33-ansible:latest
scenario: autodeploy
- distro: xanmanning/docker-alpine-ansible:3.16
scenario: highavailabilityetcd

View file

@ -6,7 +6,6 @@
molecule_is_test: true
k3s_release_version: latest
k3s_build_cluster: false
k3s_control_token: 55ba04e5-e17d-4535-9170-3e4245453f4d
k3s_install_dir: /opt/k3s/bin
k3s_config_file: /opt/k3s/etc/k3s.yaml
k3s_server:
@ -20,6 +19,6 @@
- url: https://raw.githubusercontent.com/metallb/metallb/v0.9.6/manifests/namespace.yaml
filename: 05-metallb-namespace.yml
k3s_service_env_vars:
GOGC: 10
K3S_TEST_VAR: "Hello world!"
roles:
- role: "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}"

View file

@ -9,7 +9,7 @@
until: k3s_service_start_k3s is succeeded
retries: 3
delay: 3
# failed_when:
# - k3s_service_start_k3s is not succeeded
# - not ansible_check_mode
failed_when:
- k3s_service_start_k3s is not succeeded
- not ansible_check_mode
become: "{{ k3s_become }}"