darkwizard242.hostctl

Ansible Role: hostctl

This role installs hostctl on Debian/Ubuntu and EL systems. hostctl helps you manage your hosts file with multiple profiles that you can switch on and off easily.

Requirements

None.

Role Variables

Here are the available variables (see defaults/main.yml):

List of Variables:

hostctl_app: hostctl
hostctl_version: 1.1.4
hostctl_os: linux
hostctl_arch: 64-bit
hostctl_dl_url: https://github.com/guumaster/{{ hostctl_app }}/releases/download/v{{ hostctl_version }}/hostctl_{{ hostctl_version }}_{{ hostctl_os }}_{{ hostctl_arch }}.tar.gz
hostctl_bin_path: /usr/local/bin
hostctl_file_owner: root
hostctl_file_group: root
hostctl_file_permission_mode: '0755'

Variable Descriptions:

Variable Description
hostctl_app The application to install, which is hostctl.
hostctl_version The version to install. Defaults to 1.1.4.
hostctl_os The type of operating system. Defaults to linux.
hostctl_arch The architecture of the operating system. Defaults to 64-bit.
hostctl_dl_url URL to download the hostctl binary.
hostctl_bin_path Path to store the hostctl binary. Defaults to /usr/local/bin.
hostctl_file_owner Owner of the hostctl binary file.
hostctl_file_group Group of the hostctl binary file.
hostctl_file_permission_mode Permission settings for the file. Defaults to 0755.

Dependencies

None.

Example Playbook

To use this role to install hostctl:

- hosts: servers
  roles:
    - darkwizard242.hostctl

To customize the installation (for a specific hostctl version):

- hosts: servers
  roles:
    - darkwizard242.hostctl
  vars:
    hostctl_version: 1.1.2

To change where the hostctl binary is installed:

- hosts: servers
  roles:
    - darkwizard242.hostctl
  vars:
    hostctl_bin_path: /bin/

License

MIT

Author Information

This role was created by Ali Muhammad.

Informazioni sul progetto

Installs/Uninstalls 'hostctl'. hostctl is an open source tool to manage hosts file.

Installa
ansible-galaxy install darkwizard242.hostctl
Licenza
mit
Download
1.5k
Proprietario
Senior DevOps/CloudOps Engineer. Dedicated to Automating everything I come across. Love to work on and learn new technologies/tools everyday!