tasks.yml DRY + Molecule verify fix
Test & Deploy Hugo Docker CMS / test-and-deploy (push) Successful in 4m8s
Test & Deploy Hugo Docker CMS / test-and-deploy (push) Successful in 4m8s
This commit is contained in:
@@ -1,3 +1,17 @@
|
||||
---
|
||||
- name: Converge
|
||||
ansible.builtin.import_playbook: ../../deploy.yml
|
||||
hosts: all
|
||||
gather_facts: true
|
||||
vars:
|
||||
target_hostname: "test-node"
|
||||
target_port: 5443
|
||||
site_title: "Hugo Docker CMS"
|
||||
site_description: "Testlauf"
|
||||
site_author: "Molecule"
|
||||
deploy_path: "/tmp/.docker/hugo"
|
||||
project_root: "/home/jonnybravo/Projekte/hugo_docker"
|
||||
molecule_test: true
|
||||
tasks:
|
||||
- name: Deploy-Tasks ausführen
|
||||
ansible.builtin.include_tasks:
|
||||
file: ../../tasks.yml
|
||||
@@ -12,14 +12,6 @@ platforms:
|
||||
|
||||
provisioner:
|
||||
name: ansible
|
||||
inventory:
|
||||
host_vars:
|
||||
ubuntu:
|
||||
target_hostname: "test-node"
|
||||
target_port: 5443
|
||||
deploy_path: "/tmp/.docker/hugo"
|
||||
project_root: "/home/jonnybravo/Projekte/hugo_docker"
|
||||
molecule_test: true
|
||||
config_options:
|
||||
defaults:
|
||||
host_key_checking: false
|
||||
|
||||
@@ -39,9 +39,9 @@
|
||||
|
||||
- name: Entrypoint muss ausführbar sein
|
||||
ansible.builtin.assert:
|
||||
that: entrypoint_stat.stat.executable
|
||||
fail_msg: "entrypoint.sh ist nicht ausführbar!"
|
||||
success_msg: "entrypoint.sh ist ausführbar."
|
||||
that: entrypoint_stat.stat.mode == '0755'
|
||||
fail_msg: "entrypoint.sh hat nicht mode 0755!"
|
||||
success_msg: "entrypoint.sh hat korrekt mode 0755."
|
||||
|
||||
- name: Prüfe Template-Inhalte
|
||||
ansible.builtin.shell: |
|
||||
|
||||
Reference in New Issue
Block a user