Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/oefenweb/ansible-at-client

Set up a persistent channel for queuing commands (using at) in Debian-like systems (client side)
https://github.com/oefenweb/ansible-at-client

ansible at client debian queue ssh ubuntu

Last synced: 15 days ago
JSON representation

Set up a persistent channel for queuing commands (using at) in Debian-like systems (client side)

Awesome Lists containing this project

README

        

## at-client

[![CI](https://github.com/Oefenweb/ansible-at-client/workflows/CI/badge.svg)](https://github.com/Oefenweb/ansible-at-client/actions?query=workflow%3ACI)
[![Ansible Galaxy](http://img.shields.io/badge/ansible--galaxy-at--client-blue.svg)](https://galaxy.ansible.com/Oefenweb/at_client/)

Set up a persistent channel for queuing commands (using `at`) in Debian-like systems (client side).

#### Requirements

* `openssh-client` (will not be installed)
* `bash` (will not be installed)

#### Variables

* `at_client_key_map`: [default: `[]`]: SSH key declarations
* `at_client_key_map.{n}.src`: [required]: The local path of the file to copy, can be absolute or relative (e.g. `../../../files/at/home/at/.ssh/id_rsa`)
* `at_client_key_map.{n}.dest`: [optional, default `src | basename`]: The remote path of the file to copy, relative to `/etc/at` (e.g. `id_rsa`)
* `at_client_key_map.{n}.owner`: [optional, default `root`]: The name of the user that should own the file
* `at_client_key_map.{n}.group`: [optional, default `owner`, `root`]: The name of the group that should own the file
* `at_client_key_map.{n}.mode`: [optional, default `0600`]: The mode of the file to copy

* `at_client_user`: [default: `at`]: Remote user for connection

## Dependencies

None

## Recommended

* `ansible-ssh-client` ([see](https://github.com/Oefenweb/ansible-ssh-client))
* `ansible-at-server` ([see](https://github.com/Oefenweb/ansible-at-server))

#### Example(s)

```yaml
---
- hosts: all
roles:
- oefenweb.at-client
vars:
at_client_key_map:
- src: ../../../files/at-client/etc/at/id_rsa
```

You will be able to schedule a command on `example.com` using:

```bash
at-ssh -h example.com -i id_rsa now <