This playbook configures a fresh VPS on Ionos from 1&1
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Jake Price 1bb728f021 Initial commit 4 months ago
.gitignore Initial commit 4 months ago
README.md Initial commit 4 months ago
ansible.cfg Initial commit 4 months ago
ionos.yml Initial commit 4 months ago
vault.yml Initial commit 4 months ago

README.md

Ansible Playbook to Configure Ubuntu Server on Ionos

This playbook configures a fresh VPS on Ionos from 1&1.

Ansible Galaxy Collections

Install the following collections on your control node machine.

ansible-galaxy collection install community.general
ansible-galaxy collection install ansible.posix

Ansible Vault

vault.yml should contain the values for:

  • vault_root_password

The vault.yml file is encrypted and passphrase protected. .vault_password is not committed to version control. If lost create a new vault.yml and enter values for the above vault variables.

Hosts

Make sure that /etc/ansible/hosts has an entry for the Ionos VPS.

---
all:
  hosts:
    ionos1:
      ansible_host: <ip-address>
      ansible_user: <initial-user>
      ansible_ssh_pass: <initial-user-password>
      ansible_become_pass: <initial-user-sudo-password>

Ansible Config

To save specifying the vault password, ansible.cfg contains the path to .vault_password.

[defaults]
vault_password_file = .vault_password

Run Playbook

Run the playbook as follows.

ansible-playbook ionos.yml