This role sets deploy user, push up sudoers and deployers keys, install logrotate and set vim as default text editor.
you will need:
1 - Datadog account and API key
2 - File with deployers ssh keys
Store the following in a vault file:
secrets:
datadog_api_token: <datadog_token>
deployer: <app_name>
deployer_home_dir: "/srv/{{ deployer }}"
root_user: <root_user_name> # optional
deployers_path: <path_to_deployers_ssh_public_key_template>
sudoers_path: <path_to_sudoers_ssh_public_key_template> # defaults to deployers_path
ssh_key_options: 'no-pty' # defaults to 'no-X11-forwarding,no-port-forwarding'. See https://man.openbsd.org/OpenBSD-current/man8/sshd.8#AUTHORIZED_KEYS_FILE_FORMAT.
ansible-playbook tests/test.yml -i your_inventory_file
How to include this role:
- hosts: servers
roles:
- ansible-common
MIT