-
Notifications
You must be signed in to change notification settings - Fork 499
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
30 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
ansible/roles/ansible_bu_setup_workshop/tasks/common/clone-workshop-content.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
- name: Clone rhel-workshop | ||
ansible.builtin.git: | ||
repo: "{{ ansible_bu_setup_workshop_content_git_repo }}" | ||
dest: /tmp/workshops | ||
version: "{{ ansible_bu_setup_workshop_content_git_version }}" | ||
|
||
- name: Copy rhel-workshop to users home | ||
ansible.builtin.copy: | ||
src: "/tmp/workshops/exercises/{{ ansible_bu_setup_workshop_exercise_src }}/" | ||
dest: "/home/{{ student_name }}/{{ ansible_bu_setup_workshop_exercise_dest }}/" | ||
remote_src: true | ||
owner: "{{ student_name }}" | ||
group: "{{ student_name }}" | ||
mode: '0755' | ||
|
||
- name: Clean workshop clone directory | ||
ansible.builtin.file: | ||
path: "/tmp/workshops" | ||
state: absent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters