From df32926ad2357709804bbb11ae4bf43ae2d7315d Mon Sep 17 00:00:00 2001 From: Thomas Constans Date: Tue, 23 Sep 2025 10:20:19 +0200 Subject: [PATCH] fqcn'd --- apache.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/apache.yml b/apache.yml index 36aa80a..dd85ebd 100644 --- a/apache.yml +++ b/apache.yml @@ -9,12 +9,12 @@ tasks: - name: install apache - yum: + ansible.builtin.package: name: httpd state: latest - name: conf httpd - template: + ansible.builtin.template: src: vhost.conf dest: /etc/httpd/conf.d/vhost.conf mode: 0640 @@ -26,13 +26,13 @@ ansible.builtin.meta: flush_handlers - name: activate apache - service: + ansible.builtin.service: name: httpd enabled: yes state: started - name: open firewall port - firewalld: + ansible.posix.firewalld: service: http permanent: yes immediate: yes @@ -40,12 +40,12 @@ ignore_errors: yes - name: create documentroot - file: + ansible.builtin.file: name: /var/www/html/example.org state: directory - name: create index file - copy: + ansible.builtin.copy: src: index.txt dest: /var/www/html/example.org/index.html mode: 0644