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.
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
Ubuntu Precise (12.04) provides 1.1 version of Mosh, but the newer version is available from backports repository. To install:
- Enable backports repository; you can use debian-backports role:
ansible-galaxy install jnv.debian-backports
- Enable
mosh_debian_use_backports
variable.
For example:
- hosts: all
roles:
- jnv.debian-backports
- { role: jnv.mosh, mosh_debian_use_backports: yes}
mosh_pkg
(default:mosh
): Mosh package name, usually just on most distributionsmosh_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 thedefault_release
to use with apt module whenmosh_debian_use_backports
is enabled.- The default resolves to, for example,
precise-backports
- The default resolves to, for example,