Skip to content

Commit 5651b50

Browse files
Merge pull request #40 from ccdc-opensource/use-role-dependencies
Use role dependencies instead of explicit `include_role`s
2 parents 4b7dee9 + 5504170 commit 5651b50

File tree

7 files changed

+15
-20
lines changed

7 files changed

+15
-20
lines changed

meta/main.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,5 @@ galaxy_info:
3636
- desktop
3737
- integrationtesting
3838

39-
dependencies: []
39+
dependencies:
40+
- role: ccdc.package_manager_configuration

tasks/AlmaLinux.yml

-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
---
2-
- name: Set up package managers for required tools
3-
ansible.builtin.include_role:
4-
name: ccdc.package_manager_configuration
5-
62
- name: Install desktop environment
73
ansible.builtin.package:
84
name: "{{ package }}"

tasks/Darwin.yml

-6
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,6 @@
2626
homebrew_installed_packages:
2727
- xfreebird/utils/kcpassword
2828

29-
# - name: Add kcpassword utility for autologin
30-
# community.general.homebrew:
31-
# name: kcpassword
32-
# state: present
33-
# become: true
34-
3529
- name: Set autoLoginUser for current user
3630
community.general.osx_defaults:
3731
domain: /Library/Preferences/com.apple.loginwindow

tasks/RedHat.yml

-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
---
2-
- name: Set up package managers for required tools
3-
ansible.builtin.include_role:
4-
name: ccdc.package_manager_configuration
5-
62
- name: Install desktop environment
73
ansible.builtin.package:
84
name: "{{ package }}"

tasks/Windows.yml

+10-2
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,18 @@
66
become: true
77

88
- name: Enable autologon for vagrant
9-
ansible.windows.win_command: powershell.exe Start-Process -FilePath "C:\\ProgramData\\chocolatey\\bin\\Autologon.exe" -ArgumentList '"/accepteula" vagrant . {{ windows_autologon_password }}'
9+
ansible.windows.win_command: >
10+
powershell.exe Start-Process
11+
-FilePath "C:\\ProgramData\\chocolatey\\bin\\Autologon.exe"
12+
-ArgumentList '"/accepteula" vagrant . {{ windows_autologon_password }}'
1013
1114
- name: Disable screen saver
12-
ansible.windows.win_shell: Set-ItemProperty "HKCU:\Control Panel\Desktop" -Name ScreenSaveActive -Value 0 -Type DWord
15+
ansible.windows.win_shell: >
16+
Set-ItemProperty
17+
"HKCU:\Control Panel\Desktop"
18+
-Name ScreenSaveActive
19+
-Value 0
20+
-Type DWord
1321
1422
- name: Disable monitor and standby idle timeout
1523
ansible.windows.win_command: powercfg -x -{{ timeout }} 0

tasks/main.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
- name: Set OS-specific variables for {{ ansible_os_family }}-{{ ansible_distribution }}-{{ ansible_distribution_major_version }}
2+
- name: Set OS-specific variables for {{ ansible_os_family }}-{{ ansible_distribution }}-{{ ansible_distribution_major_version }} # noqa: name[template]
33
ansible.builtin.include_vars: "{{ item }}"
44
with_first_found:
55
- files:
@@ -11,7 +11,7 @@
1111
skip: true
1212
tags: vars
1313

14-
- name: Set up desktop environment on {{ ansible_os_family }}-{{ ansible_distribution }}-{{ ansible_distribution_major_version }}
14+
- name: Set up desktop environment on {{ ansible_os_family }}-{{ ansible_distribution }}-{{ ansible_distribution_major_version }} # noqa: name[template]
1515
ansible.builtin.include_tasks: "{{ item }}"
1616
with_first_found:
1717
- files:

vars/macos.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ homebrew_user: "{{ ansible_user }}"
66
homebrew_taps:
77
- name: xfreebird/utils
88
- name: xcodesorg/made
9-
current_user: "{{ lookup('env','USER') }}"
9+
current_user: "{{ lookup('env', 'USER') }}"
1010

1111
homebrew_installed_packages:
1212
- kcpassword

0 commit comments

Comments
 (0)