Thanks to visit codestin.com
Credit goes to github.com

Skip to content

charles-m-knox/ansible-role-xdotool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xdotool

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.

Requirements

There are no requirements for this, it should work out of the box with Ansible.

Role Variables

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.

Dependencies

None at the moment.

Usage

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: main

Next, install it:

# include the -f flag to forceably re-install and get the latest (equivalent to
# upgrading)
ansible-galaxy role install -f -r requirements.yml

Now, 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:
    - xdotool
ansible-playbook site.yml --tags xdotool

License

MIT

Author Information

https://charlesmknox.com

About

An Ansible role for installing xdotool.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published