Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jh-ansible-collection
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
What's new
5
Snippets
Groups
Projects
jihulab
Infrastructure
jh-ansible-collection
Commits
5a682eef
Commit
5a682eef
authored
2 years ago
by
Kang Liu
Browse files
Options
Downloads
Patches
Plain Diff
A few words
parent
28bd5430
Branches
add-task-to-change-expiration-days
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/bastion/tasks/assets_chage.yml
+2
-2
2 additions, 2 deletions
roles/bastion/tasks/assets_chage.yml
with
2 additions
and
2 deletions
roles/bastion/tasks/assets_chage.yml
+
2
−
2
View file @
5a682eef
-
name
:
Change
expiration
o
f system users
-
name
:
Set
expiration f
or
system users
become
:
yes
shell
:
|
chage -l {{ item.username }} && chage -M {{ expiration_days | default(90) }} {{ item.username }} || true
...
...
@@ -7,4 +7,4 @@
with_items
:
-
"
{{
users
}}"
loop_control
:
label
:
"
Try
to
change
expiration
for
{{
item.username
}}:
{{
expiration_days
|
default(90)
}}
days."
\ No newline at end of file
label
:
"
Try
to
set
expiration
for
{{
item.username
}}:
{{
expiration_days
|
default(90)
}}
days."
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
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