Skip to content

Commit

Permalink
use a variable for the path
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Nov 30, 2023
1 parent b474f22 commit 72f1369
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions roles/beaker/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ beaker_base_environment:
BEAKER_setfile: "{{ beaker_os }}-64{hostname={{ beaker_os }}-64.example.com}"
BEAKER_destroy: "no"
beaker_environment: {}
beaker_puppet_module_path: "/src/{{ beaker_puppet_module }}"
4 changes: 2 additions & 2 deletions roles/beaker/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@
- name: Clone puppet module
ansible.builtin.git:
repo: "https://github.com/theforeman/{{ beaker_puppet_module }}.git"
dest: "/src/{{ beaker_puppet_module }}"
dest: "{{ beaker_puppet_module_path }}"
version: "{{ beaker_puppet_module_version | default(omit) }}"

- name: Bundle install
command: bundle install
args:
chdir: "/src/{{ beaker_puppet_module }}"
chdir: "{{ beaker_puppet_module_path }}"
2 changes: 1 addition & 1 deletion roles/beaker/tasks/test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- name: Run acceptance tests
command: bundle exec rake beaker
args:
chdir: "/src/{{ beaker_puppet_module }}"
chdir: "{{ beaker_puppet_module_path }}"
environment: "{{ beaker_base_environment | ansible.builtin.combine(beaker_environment) }}"

0 comments on commit 72f1369

Please sign in to comment.