commit babacc793ce5a05ac7ea7cb229b76aa35440e527 Author: Chris Hammer Date: Fri Dec 8 23:36:00 2023 -0500 initial project commit diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..73a366a --- /dev/null +++ b/.drone.yml @@ -0,0 +1,42 @@ +--- +kind: pipeline +type: docker +name: run_ansible_tests_fedora39 + +global-variables: + ansible_image : &ansible_image "gitea.thezengarden.net/podman/ansible-dev/fedora39:release-31" + ansible_inventory : &ansible_inventory "-i 127.0.0.1, --connection=local" + ansible_playbook : &ansible_playbook "hello.yml" + +environment: + ANSIBLE_INVENTORY : *ansible_inventory + ANSIBLE_PLAYBOOK : *ansible_playbook + +trigger: + branch: + exclude: + - main + event: [push] + +steps: + - name: "ansible_environment_verify" + image: *ansible_image + commands: + - git log -1 + - ansible --version + - ansible-lint --version + + - name: "ansible_galaxy_requirements" + image: *ansible_image + commands: + - ansible-galaxy install -r requirements.yml + + - name: "ansible_lint" + image: *ansible_image + commands: + - ansible-lint --offline + + - name: "ansible_playbook_execution" + image: *ansible_image + commands: + - ansible-playbook -v $ANSIBLE_INVENTORY $ANSIBLE_PLAYBOOK diff --git a/hello.yml b/hello.yml new file mode 100644 index 0000000..a90c638 --- /dev/null +++ b/hello.yml @@ -0,0 +1,10 @@ +- name: Hello world + hosts: all + become: false + gather_facts: false + + + tasks: + - name: Say Hello world + ansible.builtin.debug: + msg: Hello world!