- Timestamp:
- Jan 3, 2023, 12:55:40 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/ansible/roles/httpd/tasks/main.yml
r3763 r3792 3 3 - name: Check that Apache is installed 4 4 urpmi: name=apache state=installed no-recommends=yes 5 tags: httpd 5 6 - name: Check that Apache mod_proxy is installed 7 urpmi: name=apache-mod_proxy state=installed no-recommends=yes 6 8 7 9 - name: Configure Apache log directories … … 25 27 notify: 26 28 - restart httpd 27 tags: httpd28 29 29 30 - name: Configure Apache upload max … … 31 32 notify: 32 33 - restart httpd 33 tags: httpd34 34 35 35 - name: Setup httpd restart by cron 36 36 cron: name=httpd-restart minute=43 hour=23 user=root job="/usr/bin/systemctl restart httpd" cron_file=httpd-restart state=present backup=yes 37 tags: httpd38 37 39 38 - name: Configure Apache logrotate 40 39 copy: src=files/mondorescue.logrot dest=/etc/logrotate.d/mondorescue owner=root group=root mode=0644 backup=yes 41 tags: httpd42 40 43 41 - name: Configure Apache .ssh directory … … 49 47 - name: Copy public keys for pb access 50 48 lineinfile: destfile=/var/www/.ssh/authorized_keys state=present line='{{ pbkey }}' mode=0600 backup=yes owner=apache group=apache 51 tags: httpd52 49 53 50 - name: Check that Apache is running and enabled 54 51 service: name=httpd state=started enabled=yes 55 tags: httpd
Note:
See TracChangeset
for help on using the changeset viewer.