Skip to content

acbgbca/microserver-ansible-playbooks

Repository files navigation

Microserver Ansible Playbooks

This repository contains the ansible scripts required to setup Microserver

Basic Instructions

First Run

As the ssh key hasn't been deployed, you need to use the password for the first run. Use -k to pass the password, -K so the sudo password can be entered, and -e 'ansible_user=<user>' to override the ansible user to be whomever was setup on the server.

ansible-playbook microserver.yml -i hosts -e 'ansible_user=<user>' -k -K

NOTE: The cloud_sync scripts won't work until rclone has been configured. See https://acbgbca.github.io/documentation/linux/rclone

Run Docker script

ansible-playbook microserver.yml -i hosts

Do a dry run --check

ansible-playbook microserver.yml -i hosts --check

Run the changes for a single tag --tags <tag>

ansible-playbook -i hosts microserver.yml --tags docker

Encrypt a secret

ansible-vault encrypt_string '<string_to_encrypt>' --name '<string_name_of_variable>'

I.e.

ansible-vault encrypt_string 'secret' --name 'key'

Encryption successful
key: !vault |
          $ANSIBLE_VAULT;1.1;AES256
          <encrypted value>

Fresh setup

For a fresh Promox install, the following steps need to be under taken:

Initial Configuration

Not all steps are convient to do via Ansible. The following should be done manually:

  • Copy private key for Git access

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published