Skip to content

snurer/ansible_playbooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Playbook Exercies

This repository includes simple ansible playbooks to exercise modules and commands.

Automation

Use these playbooks to automate the following actions for Centos7:

Install and start Apache

yum install httpd -y
systemctl enable httpd
systemctl start apache

Copy file from /etc/passwd to /tmp/copy_passwd

cp /etc/passwd /tmp/copy_passwd

Create a directory under /tmp

mkdir /tmp/test-ansible

Install and Start yum-cron

yum install yum-cron -y
systemctl enable yum-cron
systemctl start yum-cron

Ensure NTP is installed and running

yum install ntp -y
systemctl enable ntpd
systemctl restart ntpd

Feel free to clone and work on the playbooks.

About

Playbooks for basic tasks, conditionals and creating a droplet on DigitalOcean

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published