These are ad-hoc commands.
Create Group
ansible localhost -m group -a "name=Sumanth-A1"
Create User
ansible localhost -m user -a "name=deploy-user state=present"
Install httpd package
ansible localhost -m package -a "name=httpd state=present"
Start httpd and enable
ansible localhost -m systemd -a "name=httpd state=started enabled=yes"
Move index.html file
ansible localhost -m copy -a "src=/usr/local/bin dest=/var/www/html/index.html mod=0644"
Install package "git"
ansible localhost -m package -a "name=git state=present"
Install package "wget"
ansible localhost -m package -a "name=wget state=present"
Clone GIT Repo
ansible localhost -m git -a "repo=https://github.com/scmgalaxy/repo.git dest=/home/user/repo"
Top comments (0)