1. change directory

$ cd wordpress-ansible

2. First at Once, Build Python Environtment on your Host Machine

2.1. Install Python via pyenv

$ pyenv install 3.9.4
$ pyenv local 3.9.4

2.2. Install Ansible

$ pipenv install ansible --dev

2.3. create secret.yml and encrypt it

$ cp ansible/vars/local/secret.sample.yml ansible/vars/local/secret.yml
$ ansible-vault encrypt ansible/vars/local/secret.yml

Shell will asks you that enter a new password for secret.yml ecryption:

New Vault password:
Confirm New Vault password:
Encryption successful

2.4. create .vault_password file

$ vi ansible/.vault_password

Then, write out your vault password into the ansible/.vault_password it would be exact same you entered on the above step.

3. build local dev server

$ pipenv shell
$ vagrant up --provision

4. provision production server

$ ansible-playbook -i hosts/lightsail provision.yaml