mosh

Mosh (Mobile shell) Role for Ansible

Installs Mosh native package on Debian (wheezy), Ubuntu (precise and newer), OpenSuSE (12.3+), and Fedora (16+).

Optional installation from backports repository on Ubuntu and Debian is also supported.

Usage

Install via Galaxy:

ansible-galaxy install jnv.mosh

In your playbook:

- hosts: all
  roles:
    # ...
    - jnv.mosh

And then connect the same way as with SSH, but replace ssh with mosh:

mosh user@host

Install Mosh 1.2 from Backports (Debian, Ubuntu)

Ubuntu Precise (12.04) provides 1.1 version of Mosh, but the newer version is available from backports repository. To install:

  1. Enable backports repository; you can use debian-backports role:
ansible-galaxy install jnv.debian-backports
  1. Enable mosh_debian_use_backports variable.

For example:

- hosts: all
  roles:
  - jnv.debian-backports
  - { role: jnv.mosh, mosh_debian_use_backports: yes}

Variables

  • mosh_pkg (default: mosh): Mosh package name, usually just on most distributions
  • mosh_debian_use_backports (default: no): Whether the backports version should be installed; see above.
  • mosh_debian_backports_target (default: {{ansible_distribution_release}}-backports): Value of the default_release to use with apt module when mosh_debian_use_backports is enabled.
    • The default resolves to, for example, precise-backports
About

Installs native package for Mosh (mobile shell)

Install
ansible-galaxy install jnv/ansible-role-mosh
GitHub repository
License
unlicense
Downloads
1314
Owner