Ansible role that installs xdotool.
On some apt-based systems, the packages were out of date (at the time, maybe
still now even), so I wrote this logic to compile xdotool from source on apt
systems only. On other systems (pacman and dnf), xdotool gets installed
from the official repositories.
There are no requirements for this, it should work out of the box with Ansible.
Simply set install_xdotool to true and it will be installed.
You can set xdotool_clean_build_dir to true and the temporary directory
where xdotool is built will be cleaned up.
None at the moment.
First, create a requirements.yml in your Ansible setup if you haven't already,
here's an example:
---
collections:
- name: community.general
- name: ansible.posix
- name: community.crypto
roles:
- name: charles-m-knox.xdotool
src: https://github.com/charles-m-knox/ansible-role-xdotool.git
scm: git
version: mainNext, install it:
# include the -f flag to forceably re-install and get the latest (equivalent to
# upgrading)
ansible-galaxy role install -f -r requirements.ymlNow, in your site.yml (or whatever your playbook is named), use the role -
note that root access is required for some of the steps:
- name: xdotool
hosts: all
roles:
- charles-m-knox.xdotool
tags:
- xdotoolansible-playbook site.yml --tags xdotoolMIT