Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tier2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SystemAdministration
tier2
Commits
8c008db9
Commit
8c008db9
authored
1 year ago
by
Sander Kuusemets
Browse files
Options
Downloads
Patches
Plain Diff
Update file main.yml
parent
5de93152
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tasks/main.yml
+20
-5
20 additions, 5 deletions
tasks/main.yml
with
20 additions
and
5 deletions
tasks/main.yml
+
20
−
5
View file @
8c008db9
...
...
@@ -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
:
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment