mirror of
https://github.com/roles-ansible/ansible_role_xrandr_help.git
synced 2024-08-16 10:09:52 +02:00
install some packages
This commit is contained in:
parent
b66b366a39
commit
00d0e88f4e
3 changed files with 33 additions and 3 deletions
22
README.md
22
README.md
|
@ -1,2 +1,20 @@
|
|||
# role-xrandr
|
||||
Ansible role to install xrandr/arandr (need eg. for i3wm)
|
||||
xrandr - Ansible role
|
||||
==========================
|
||||
|
||||
Ansible role to install xrandr to controll your monitor setup.
|
||||
|
||||
This is realy helpful, if you are using a display manager (eg. i3wm) that comes without a dedicated display control center (like gnome).
|
||||
|
||||
Default variables:
|
||||
-----------------
|
||||
```ini
|
||||
# do you want a graphical display contol panel like arandr
|
||||
install_graphical_application: true
|
||||
|
||||
# do you want autorandr have installed?
|
||||
install_autorandr_application: true
|
||||
```
|
||||
|
||||
Attention:
|
||||
-------------
|
||||
This playbook is only tested on archlinux. Package names on other OSes may be different.
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
---
|
||||
install_graphical_application: true
|
||||
install_autorandr_application: true
|
||||
|
|
|
@ -3,10 +3,21 @@
|
|||
include_vars: "{{ ansible_os_family }}.yml"
|
||||
|
||||
- name: Install xrandr
|
||||
become: true
|
||||
package:
|
||||
name: "{{ xrandr_package }}"
|
||||
state: present
|
||||
|
||||
- name: Install arandr gui
|
||||
become: true
|
||||
package:
|
||||
name:
|
||||
name: "{{ graphical_xrandr_packages }}"
|
||||
state: present
|
||||
when: install_graphical_application
|
||||
|
||||
- name: Install autorandr
|
||||
become: true
|
||||
package:
|
||||
name: "{{ autorandr }}"
|
||||
state: present
|
||||
when: install_autorandr_application
|
||||
|
|
Loading…
Reference in a new issue