Skip to content

Commit

Permalink
Make the wm package selectable (#7)
Browse files Browse the repository at this point in the history
* Make the wm package selectable

* pinning docker api version

* rty
  • Loading branch information
unkcpz authored Jun 20, 2023
1 parent 2c6606a commit fc1ddfc
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .ansible-lint
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# use `# noqa xxx` at the end of a line, to ignore a particular error
# or add to the warn_list, to ignore for the whole project
warn_list:
- internal-error # Unexpected internal error.
- internal-error # Unexpected internal error.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ See `defaults/main.yml`
- hosts: servers
roles:
- role: marvel-nccr.ubuntu_desktop
vars:
ubuntu_desktop_vm_user: "{{ vm_user }}"
ubuntu_desktop_browser: "{{ vm_browser }}"
ubuntu_desktop_wm_package: "{{ vm_wm_package }}" # e.g. lxde, ubuntu-desktop, ubuntu-desktop-minimal
```
## Development and testing
Expand Down
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
ubuntu_desktop_browser: firefox
ubuntu_desktop_wm_package: ubuntu-desktop
ubuntu_desktop_vm_user: "{{ ansible_env.SUDO_USER | default(ansible_env.USER, true) | default(ansible_user_id, true) }}"

# yamllint disable-line rule:line-length
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ ansible~=2.10.0
# for testing
molecule[docker]~=3.1.0
docker~=4.2
requests~=2.24.0
6 changes: 2 additions & 4 deletions tasks/packages.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
- name: Install ubuntu-desktop (apt)
- name: Install wm desktop (apt)
become: true
apt:
name:
- ubuntu-desktop
# - lxde
# - lxde-common
- "{{ ubuntu_desktop_wm_package }}" # e.g. lxde, ubuntu-desktop-minimal
- python3-pip

- name: Install packages (pip)
Expand Down

0 comments on commit fc1ddfc

Please sign in to comment.