- Run the following command to start mongodb cluster locally.
make mongoc
- local: The role uses to do some action on the local machine.
- ssh: The role uses to do some action on the remote machine.
gol_server
is an aliases of the server for initial setup use in the inventory file.
- domain: domain name of the server
[localhost] ## for local machine
[gol_server] ## for remote machine
create a file credentials_[development/production].yml
. use the following command to create the file.
ansible-vault create credentials_[development/production].yml
create a text file passwordfile
use for open credentials file by --vault-password-file ./path/to/file
. use the following command to create the file.
echo "password" > passwordfile
_ dont forget to put passwordfile in gitignore _
- All the roles should be named in lowercase and should be hyphen separated start with
ansible-role
. - The role name should not contain any special characters or spaces.
- The role's variables should be under-line separated and should be in lowercase.(e.g. some_name,
defaults/main.yml
) - The role scope variables should be in uppercase and should be under-line separated.(e.g. RSA_NEW,
ansible-role-lsk/tasks/main.yml
)