- Ansible Roles for:
- VM Management:
- vmdeploy
- gocustom
- vmdelete
- VM Snapshot Management:
- vmsnapshot
- vmsnapshotrevert
- vmsnapshotremove
- VM Management:
- Jenkinsfile
- alpinedevops.dockerfile
- alpine: 3.17
- ansible: 7.1.0
- ansible-core: 2.14.1
- pyvmomi: 7.0.3
- vSphere-Automation-SDK: 1.71.0
-
To build the docker image, use the below command:
$ docker build --no-cache=true -f <file_name>.dockerfile -t <docker_registry>/alpinedevops:latest
-
To login to the hub.docker.com, use the below command:
$ docker login
-
To push the docker image, use the below command:
$ docker push <docker_registry>/alpinedevops:latest
-
To deploy the linux server, use the below command:
$ ansible-playbook -i inventory webserver.yaml --tags "deploy"
-
To do the guest os customization, use the below command:
$ ansible-playbook -i inventory webserver.yaml --tags "oscustom"
-
To delete the linux server use the below command:
$ ansible-playbook -i inventory webserver.yaml --tags "delete"
-
To take the vm snapshots, use the below command:
$ ansible-playbook -i inventory webserver.yaml --tags "vmsnapshot"
-
To revert the vm snapshot, use the below command:
$ ansible-playbook -i inventory webserver.yaml --tags "vmsnapshotrevert"
-
To remove the vm snapshot, use the below command:
$ ansible-playbook -i inventory webserver.yaml --tags "vmsnapshotremove"