change to jobs folder
This commit is contained in:
@@ -35,7 +35,7 @@ plan:
|
|||||||
changes:
|
changes:
|
||||||
- terraform.tf
|
- terraform.tf
|
||||||
- terraform.tfvars
|
- terraform.tfvars
|
||||||
- tasks/main.yml
|
- jobs/main.yml
|
||||||
|
|
||||||
apply:
|
apply:
|
||||||
stage: apply
|
stage: apply
|
||||||
@@ -67,7 +67,7 @@ apply:
|
|||||||
changes:
|
changes:
|
||||||
- terraform.tf
|
- terraform.tf
|
||||||
- terraform.tfvars
|
- terraform.tfvars
|
||||||
- tasks/main.yml
|
- jobs/main.yml
|
||||||
when: manual
|
when: manual
|
||||||
|
|
||||||
ansible-apply:
|
ansible-apply:
|
||||||
@@ -80,14 +80,14 @@ ansible-apply:
|
|||||||
script:
|
script:
|
||||||
- apt update && apt install ansible -y
|
- apt update && apt install ansible -y
|
||||||
- ansible-galaxy install -r $CI_PROJECT_DIR/group_vars/requirements.yml
|
- ansible-galaxy install -r $CI_PROJECT_DIR/group_vars/requirements.yml
|
||||||
- ansible-playbook $CI_PROJECT_DIR/tasks/main.yml
|
- ansible-playbook $CI_PROJECT_DIR/jobs/main.yml
|
||||||
needs:
|
needs:
|
||||||
- apply
|
- apply
|
||||||
only:
|
only:
|
||||||
changes:
|
changes:
|
||||||
- terraform.tf
|
- terraform.tf
|
||||||
- terraform.tfvars
|
- terraform.tfvars
|
||||||
- tasks/main.yml
|
- jobs/main.yml
|
||||||
|
|
||||||
destroy:
|
destroy:
|
||||||
stage: destroy
|
stage: destroy
|
||||||
@@ -115,7 +115,7 @@ destroy:
|
|||||||
changes:
|
changes:
|
||||||
- terraform.tf
|
- terraform.tf
|
||||||
- terraform.tfvars
|
- terraform.tfvars
|
||||||
- tasks/main.yml
|
- jobs/main.yml
|
||||||
when: manual
|
when: manual
|
||||||
|
|
||||||
ansible-update:
|
ansible-update:
|
||||||
@@ -125,7 +125,7 @@ ansible-update:
|
|||||||
script:
|
script:
|
||||||
- apt update && apt install ansible -y
|
- apt update && apt install ansible -y
|
||||||
- ansible-galaxy install -r $CI_PROJECT_DIR/group_vars/requirements.yml
|
- ansible-galaxy install -r $CI_PROJECT_DIR/group_vars/requirements.yml
|
||||||
- ansible-playbook $CI_PROJECT_DIR/tasks/update.yml
|
- ansible-playbook $CI_PROJECT_DIR/jobs/update.yml
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_PIPELINE_SOURCE == "schedule"
|
- if: $CI_PIPELINE_SOURCE == "schedule"
|
||||||
when: always
|
when: always
|
||||||
@@ -137,7 +137,7 @@ ansible-update-dns:
|
|||||||
script:
|
script:
|
||||||
- apt update && apt install ansible -y
|
- apt update && apt install ansible -y
|
||||||
- ansible-galaxy install -r $CI_PROJECT_DIR/group_vars/requirements.yml
|
- ansible-galaxy install -r $CI_PROJECT_DIR/group_vars/requirements.yml
|
||||||
- ansible-playbook $CI_PROJECT_DIR/tasks/dns.yml
|
- ansible-playbook $CI_PROJECT_DIR/jobs/dns.yml
|
||||||
only:
|
only:
|
||||||
changes:
|
changes:
|
||||||
- tasks/dns.yml
|
- jobs/dns.yml
|
||||||
@@ -6,8 +6,6 @@
|
|||||||
- {record: 'bitwarden', zone: 'durp.info', proxied: 'yes', state: 'present'}
|
- {record: 'bitwarden', zone: 'durp.info', proxied: 'yes', state: 'present'}
|
||||||
- {record: 'nextcloud', zone: 'durp.info', proxied: 'yes', state: 'present'}
|
- {record: 'nextcloud', zone: 'durp.info', proxied: 'yes', state: 'present'}
|
||||||
- {record: 'grafana', zone: 'durp.info', proxied: 'yes', state: 'present'}
|
- {record: 'grafana', zone: 'durp.info', proxied: 'yes', state: 'present'}
|
||||||
- {record: 'alertmanager', zone: 'durp.info', proxied: 'yes', state: 'absent'}
|
|
||||||
- {record: 'prometheus', zone: 'durp.info', proxied: 'yes', state: 'absent'}
|
|
||||||
- {record: 'kong', zone: 'durp.info', proxied: 'yes', state: 'present'}
|
- {record: 'kong', zone: 'durp.info', proxied: 'yes', state: 'present'}
|
||||||
- {record: '@', zone: 'durp.info', proxied: 'yes', state: 'present'}
|
- {record: '@', zone: 'durp.info', proxied: 'yes', state: 'present'}
|
||||||
- {record: 'whoogle', zone: 'durp.info', proxied: 'yes', state: 'present'}
|
- {record: 'whoogle', zone: 'durp.info', proxied: 'yes', state: 'present'}
|
||||||
Reference in New Issue
Block a user