... | ... |
@@ -2,11 +2,42 @@ |
2 | 2 |
|
3 | 3 |
An [Ansible][] [role][] for deploying custom [X][] session [`.desktop`][] file. |
4 | 4 |
|
5 |
+Adds a `/etc/X11/sessions/Xsession.desktop` file that is picked up by [X |
|
6 |
+display manager][]s and, if chosen, runs `/etc/X11/Xsession` (which probably |
|
7 |
+runs your `$HOME/.xsession`). |
|
8 |
+ |
|
5 | 9 |
[`ansible-role-xsession`]: https://git.rcrnstn.net/rcrnstn/ansible-role-xsession |
6 | 10 |
[Ansible]: https://docs.ansible.com/ansible |
7 | 11 |
[role]: https://docs.ansible.com/ansible/latest/user_guide/playbooks_reuse_roles.html |
8 | 12 |
[X]: https://en.wikipedia.org/wiki/X_Window_System |
9 | 13 |
[`.desktop`]: https://specifications.freedesktop.org/desktop-entry-spec/latest/index.html#introduction |
14 |
+[X display manager]: https://en.wikipedia.org/wiki/X_display_manager |
|
15 |
+ |
|
16 |
+## Usage |
|
17 |
+ |
|
18 |
+Example [`requirements.yml`][]: |
|
19 |
+ |
|
20 |
+```yaml |
|
21 |
+--- |
|
22 |
+ |
|
23 |
+roles: |
|
24 |
+ - name: 'xsession' |
|
25 |
+ src: 'https://git.rcrnstn.net/rcrnstn/ansible-role-xsession' |
|
26 |
+ scm: 'git' |
|
27 |
+``` |
|
28 |
+ |
|
29 |
+Example [playbook][]: |
|
30 |
+ |
|
31 |
+```yaml |
|
32 |
+--- |
|
33 |
+ |
|
34 |
+- hosts: 'all' |
|
35 |
+ roles: |
|
36 |
+ - role: 'xsession' |
|
37 |
+``` |
|
38 |
+ |
|
39 |
+[`requirements.yml`]: https://docs.ansible.com/ansible/latest/galaxy/user_guide.html#installing-multiple-roles-from-a-file |
|
40 |
+[playbook]: https://docs.ansible.com/ansible/latest/user_guide/playbooks.html |
|
10 | 41 |
|
11 | 42 |
## License |
12 | 43 |
|
0 | 5 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,13 @@ |
1 |
+--- |
|
2 |
+ |
|
3 |
+- name: 'Copy xsession.desktop' |
|
4 |
+ become: yes |
|
5 |
+ copy: |
|
6 |
+ # dest: '/usr/share/xsessions/xsession.desktop' |
|
7 |
+ # dest: '/etc/X11/sessions/xsession.desktop' |
|
8 |
+ dest: '/etc/X11/' |
|
9 |
+ src: 'sessions' |
|
10 |
+ owner: 'root' |
|
11 |
+ group: 'root' |
|
12 |
+ mode: '0644' |
|
13 |
+ directory_mode: '0755' |