(in vscode) terminal --> new terminal
(in new terminal)
cd Documents
git clone https://github.com/auto-store/lod-ansible
ssh [email protected]
password: Netapp1!
docker volume create ssh-keys docker volume create ansible
docker run -it -v ansible:/etc/ansible -v ssh-keys:/root/.ssh schmot1s/netapp-ansible /bin/bash
cd /etc/ansible git clone https://github.com/auto-store/lod-ansible-"user#"
ssh-keygen ssh-copy-id [email protected]
cp /etc/ansible/lod-ansible-"user"/hosts /etc/ansible/
ansible -m ping rhel
ansible-playbook install-nfs-utils.yml
change into repo directory ---> cd lod-ansible-"user" ansible-playbook flexvol-create.yml
you will need to edit a line in the cluster-role.yml "/etc/ansible/lod-ansible/cluster" and add your user number so the playbook finds the right path
e.g "/etc/ansible/lod-ansible-1/cluster"
do the same for the cluster-role-mount-nfs.yml as we will use this later.
save the changed file, then use the git integration in VSCODE to commit changes to the repository. (left sidebar, 3rd down) then use a bash shell in the terminal to execute "git push"
in the docker container, make sure you are in the repository directory. execute "git pull" to update the repo. then run the playbook that executes the cluster role.
ansible-playbook cluster-role.yml
ansible-playbook cluster-role-mount-nfs.yml
create a new SVM, new volume, new lif. use your own name!
save the changed files, then use the git integration in VSCODE to commit changes to the repository. (left sidebar, 3rd down) then use a bash shell in the terminal to execute "git push"
in the docker container, make sure you are in the repository directory. execute "git pull" to update the repo. then run the playbook that executes the cluster role.
:)
git remote add origin https://github.com/auto-store/lod-ansible-production.git git push -u origin master
use the ansible documentation.