Update .gitlab-ci.yml
This commit is contained in:
@@ -69,14 +69,14 @@ ansible:
|
|||||||
stage: ansible
|
stage: ansible
|
||||||
variables:
|
variables:
|
||||||
DEBIAN_FRONTEND: noninteractive
|
DEBIAN_FRONTEND: noninteractive
|
||||||
K8S_AUTH_KUBECONFIG: $kubeconfig
|
K8S_AUTH_KUBECONFIG: config
|
||||||
image:
|
image:
|
||||||
name: ubuntu:latest
|
name: ubuntu:latest
|
||||||
before_script:
|
before_script:
|
||||||
- apt update && apt install tzdata ansible python3-pip -y
|
- apt update && apt install tzdata ansible python3-pip -y
|
||||||
- pip install kubernetes
|
- pip install kubernetes
|
||||||
- ansible-galaxy collection install kubernetes.core
|
- ansible-galaxy collection install kubernetes.core
|
||||||
- echo $kubeconfig > config
|
- cat $kubeconfig > config
|
||||||
script:
|
script:
|
||||||
- ansible-playbook $CI_PROJECT_DIR/main.yml
|
- ansible-playbook $CI_PROJECT_DIR/main.yml
|
||||||
needs:
|
needs:
|
||||||
@@ -86,6 +86,10 @@ ansible:
|
|||||||
- terraform.tf
|
- terraform.tf
|
||||||
- terraform.tfvars
|
- terraform.tfvars
|
||||||
- main.yml
|
- main.yml
|
||||||
|
artifacts:
|
||||||
|
when: always
|
||||||
|
paths:
|
||||||
|
- $CI_PROJECT_DIR
|
||||||
|
|
||||||
destroy:
|
destroy:
|
||||||
stage: destroy
|
stage: destroy
|
||||||
|
|||||||
Reference in New Issue
Block a user