Skip to content

Commit

Permalink
Consistency changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tersmitten committed Nov 8, 2024
1 parent 0a6b6c2 commit ee35130
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 9 deletions.
11 changes: 2 additions & 9 deletions molecule/default/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,5 @@
hosts: all
become: true
tasks:
- name: test r installation
ansible.builtin.shell: >
Rscript -e 'print(gsub("I","O","PING"))'
| grep -q 'PONG'
&& (echo 'Availability test: pass' && exit 0)
|| (echo 'Availability test: fail' && exit 1)
changed_when: false
tags:
- skip_ansible_lint
- name: include tasks

Check warning on line 6 in molecule/default/verify.yml

View workflow job for this annotation

GitHub Actions / Lint

name[casing]

All names should start with an uppercase letter.

Check warning on line 6 in molecule/default/verify.yml

View workflow job for this annotation

GitHub Actions / Lint

name[casing]

All names should start with an uppercase letter.

Check warning on line 6 in molecule/default/verify.yml

View workflow job for this annotation

GitHub Actions / Lint

name[casing]

All names should start with an uppercase letter.

Check warning on line 6 in molecule/default/verify.yml

View workflow job for this annotation

GitHub Actions / Lint

name[casing]

All names should start with an uppercase letter.

Check warning on line 6 in molecule/default/verify.yml

View workflow job for this annotation

GitHub Actions / Lint

name[casing]

All names should start with an uppercase letter.
ansible.builtin.import_tasks: "{{ playbook_dir }}/../../tests/tasks/post.yml"
11 changes: 11 additions & 0 deletions tests/tasks/post.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# post test file
---
- name: test r installation
ansible.builtin.shell: >
Rscript -e 'print(gsub("I","O","PING"))'
| grep -q 'PONG'
&& (echo 'Availability test: pass' && exit 0)
|| (echo 'Availability test: fail' && exit 1)
changed_when: false
tags:
- skip_ansible_lint
3 changes: 3 additions & 0 deletions tests/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
become: true
roles:
- ../../
post_tasks:
- name: include tasks
ansible.builtin.import_tasks: "{{ playbook_dir }}/tasks/post.yml"
vars:
r_packages:
- name: DBI
Expand Down
3 changes: 3 additions & 0 deletions tests/vagrant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@
become: true
roles:
- ../../
post_tasks:
- name: include tasks
ansible.builtin.import_tasks: "{{ playbook_dir }}/tasks/post.yml"

0 comments on commit ee35130

Please sign in to comment.