Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 1019 Bytes

README-execution-steps.md

File metadata and controls

37 lines (29 loc) · 1019 Bytes

Execution

First run

  • One time script Install prerequisite software. We should have python3 installed and ansible. These are covered by the following script. It requires sudo priviledges.

    • Automated run
    curl https://raw.githubusercontent.com/amolofos/automated-workstation-setup/master/scripts/one-time-debian.sh | bash
    • Execute them locally
    git clone https://github.com/amolofos/automated-workstation-setup.git amolofos-automated-workstation-setup
    
    
    cd amolofos-automated-workstation-setup
    ./scripts/one-time-debian.sh

Scheduled runs

  • Execute the playbook manually
# Go to the locally checked out repository
cd amolofos-automated-workstation-setup

./scripts/scheduled-debian.sh
  • Execute the playbook as a cron job The ansible scripts already setup a cron job against admin user that will be executed at lunch (1pm) daily.
# As admin
$ crontab -l
#Ansible: Automated workstation setup
0 13 * * * /home/admin/scripts/admin-cronjob.sh