Skip to content

✨ Scripts for provisioning a server to host Phoenix Framework app

License

Notifications You must be signed in to change notification settings

marekciupak/ansible-phoenix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible-phoenix

Scripts for provisioning a server to host Phoenix Framework app.

Requirements

Target machine

Control machine

  • Install Python

    See sample instruction for macOS users

    Installing Python on macOS using Homebrew and asdf-vm:

    brew install asdf
    echo -e "\n. $(brew --prefix asdf)/asdf.sh" >> ~/.zshrc
    echo -e "\n. $(brew --prefix asdf)/etc/bash_completion.d/asdf.bash" >> ~/.zshrc
    asdf plugin-add python
    asdf install python 3.8.2
    asdf global python 3.8.2
    pip install --upgrade pip
  • Install Ansible

    See sample instruction for macOS users

    Installing Ansible using Homebrew:

    pip install ansible
    asdf reshim python # if you use asdf-vm

Configuration

  1. Copy sample config:

    cp vagrant/inventory inventory && cp -r vagrant/host_vars/ host_vars/
  2. Update sample inventory and host_vars/ (in main directory of this repo) with your own config.

Usage

Preparation (first run)

Before you run the whole script, you may need to create a non-root user(s):

ansible-playbook playbook.yml -i inventory -u root -t users

Running scripts

ansible-playbook playbook.yml -i inventory -u admin

Testing locally (using vagrant)

(cd vagrant/ && vagrant up)
ansible-playbook playbook.yml -i vagrant/inventory -u root -t users
ansible-playbook playbook.yml -i vagrant/inventory -u admin
(cd vagrant/ && vagrant halt)

About

✨ Scripts for provisioning a server to host Phoenix Framework app

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages