上QQ阅读APP看书,第一时间看更新
Scheduling via Ansible Tower for daily updates
Ansible Tower allows us to schedule jobs to run automatically against servers. We can configure this in templates by configuring the start date and repeat frequency to execute the playbook.
Ansible Tower job scheduling for automated WordPress updates
Otherwise, we can use the cron job template to perform this daily and add this template while deploying the WordPress setup:
#!/bin/bash
/etc/cron.hourly/duply-backup
wp core update
wp theme update --all
wp plugin update --all