-
+ Les fichiers de cron
+
+
# systemctl status cron
# vim /etc/crontab
# vim /etc/default/cron
-
-
-
-
+
+
+
+
# vim /etc/cron.d/example
30 05 * * 0 www-data /usr/local/adm/savelog-weekly
@@ -72,7 +72,7 @@
- Éditer une table
+ Éditer une table
$ crontab -e
@@ -93,7 +93,7 @@ MAILTO=alert@example.com
- Documentation et consultation
+ Documentation et consultation
$ man 5 crontab
@@ -561,7 +561,7 @@ ansible 2.2.1.0
$ ansible localhost --module-name setup --args "filter=ansible_mem*"
$ ansible localhost --module-name lineinfile --args \
"dest=/etc/hosts regexp=example.com line='192.168.0.25 example.com'"
-
+
- inventory/
- ├── group_vars
- │ ├── all.yml
- │ ├── hypervisors.yml
- │ └── proxies.yml
- ├── hosts
- ├── hosts-dev
- └── host_vars
- ├── stack01-data01.yml
- ├── stack01-front01-web01.yml
- └── stack01-front01.yml
-
+ inventory/
+ ├── group_vars
+ │ ├── all.yml
+ │ ├── hypervisors.yml
+ │ └── proxies.yml
+ ├── hosts
+ ├── hosts-dev
+ └── host_vars
+ ├── stack01-data01.yml
+ ├── stack01-front01-web01.yml
+ └── stack01-front01.yml
+
- kvm01 ansible_host=192.168.2.1
- kvm02 ansible_host=192.168.2.2
+ kvm01 ansible_host=192.168.2.1
+ kvm02 ansible_host=192.168.2.2
- stack01-front01 ansible_host=192.168.2.1 ansible_port=22020
- stack01-front01-web01 ansible_host=192.168.2.1 ansible_port=22101
- stack01-data01 ansible_host=192.168.2.1 ansible_port=22010
+ stack01-front01 ansible_host=192.168.2.1 ansible_port=22020
+ stack01-front01-web01 ansible_host=192.168.2.1 ansible_port=22101
+ stack01-data01 ansible_host=192.168.2.1 ansible_port=22010
- [hypervisors]
- kvm01
- kvm02
+ [hypervisors]
+ kvm01
+ kvm02
- [fronts]
- stack01-front01
+ [fronts]
+ stack01-front01
- [dbs]
- stack01-data01
+ [dbs]
+ stack01-data01
- [web]
- stack01-front01-web01
-
+ [web]
+ stack01-front01-web01
+