Skip to content
Snippets Groups Projects
Commit 8c008db9 authored by Sander Kuusemets's avatar Sander Kuusemets
Browse files

Update file main.yml

parent 5de93152
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,10 @@
shell: kubectl delete ns/lab11
failed_when: false
- name: K8s
shell: /usr/local/bin/kubectl patch service prometheus -n prometheus --type='json' -p='[{"op": "replace", "path": "/metadata/labels/app", "value": "loki"}]'
failed_when: false
- name: Named
lineinfile:
dest: /etc/named.conf
......@@ -45,11 +49,6 @@
line: "myorigin = localhost"
state: present
- name: NFS
file:
dest: /etc/exports
state: absent
- name: Filesystems
ansible.posix.mount:
path: /mnt/nfs
......@@ -84,3 +83,19 @@
with_items:
- httpd
- postfix
- name: Exports
file:
path: '/etc/exports'
state: absent
- name: Exports
file:
path: '/etc/exports'
state: touch
- name: Exports
shell: exportfs -a
- name: Unconditionally reboot the machine with all defaults
ansible.builtin.reboot:
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment