Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ansible
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
36
Issues
36
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
las-it-organisation
32-0-IT instructions and rules
ansible
Commits
bcb50352
Commit
bcb50352
authored
Jan 14, 2019
by
julian.gethmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix int issue
parent
2008b3de
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
9 deletions
+6
-9
roles/clients/tasks/cups.yml
roles/clients/tasks/cups.yml
+1
-4
roles/common/tasks/etckeeper.yml
roles/common/tasks/etckeeper.yml
+2
-2
roles/common/tasks/sshd.yml
roles/common/tasks/sshd.yml
+2
-2
sites.yml
sites.yml
+1
-1
No files found.
roles/clients/tasks/cups.yml
View file @
bcb50352
...
@@ -9,11 +9,8 @@
...
@@ -9,11 +9,8 @@
-
name
:
install dependencies
-
name
:
install dependencies
become
:
yes
become
:
yes
dnf
:
dnf
:
name
:
"
{{
item
}}"
name
:
[
"
hplip-common"
,
"
hplip"
]
state
:
present
state
:
present
with_items
:
-
"
hplip-common"
-
"
hplip"
when
:
ansible_distribution == 'Fedora'
when
:
ansible_distribution == 'Fedora'
-
name
:
install CUPS
-
name
:
install CUPS
...
...
roles/common/tasks/etckeeper.yml
View file @
bcb50352
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
line
:
"
HIGHLEVEL_PACKAGE_MANAGER=dnf"
line
:
"
HIGHLEVEL_PACKAGE_MANAGER=dnf"
regexp
:
"
HIGHLEVEL_PACKAGE_MANAGER=.*"
regexp
:
"
HIGHLEVEL_PACKAGE_MANAGER=.*"
backup
:
yes
backup
:
yes
when
:
(ansible_distribution == "Fedora" and (ansible_distribution_major_version|int) >=
"18"
)
when
:
(ansible_distribution == "Fedora" and (ansible_distribution_major_version|int) >=
18
)
-
name
:
yum as package manager
-
name
:
yum as package manager
become
:
yes
become
:
yes
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
line
:
"
HIGHLEVEL_PACKAGE_MANAGER=yum"
line
:
"
HIGHLEVEL_PACKAGE_MANAGER=yum"
regexp
:
"
HIGHLEVEL_PACKAGE_MANAGER=.*"
regexp
:
"
HIGHLEVEL_PACKAGE_MANAGER=.*"
backup
:
yes
backup
:
yes
when
:
(ansible_distribution == "CentOS" and (ansible_distribution_major_version|int) <=
"7"
)
when
:
(ansible_distribution == "CentOS" and (ansible_distribution_major_version|int) <=
7
)
-
name
:
apt as package manager
-
name
:
apt as package manager
lineinfile
:
lineinfile
:
...
...
roles/common/tasks/sshd.yml
View file @
bcb50352
...
@@ -10,8 +10,8 @@
...
@@ -10,8 +10,8 @@
package
:
package
:
name
:
python-firewall
name
:
python-firewall
state
:
present
state
:
present
when
:
((ansible_distribution == "Fedora" and (ansible_distribution_major_version|int) < 28)
)
or
when
:
((ansible_distribution == "Fedora" and (ansible_distribution_major_version|int) < 28) or
(ansible_distribution == "CentOS" and (ansible_distribution_major_version|int) >= 7))
)
(ansible_distribution == "CentOS" and (ansible_distribution_major_version|int) >= 7))
-
name
:
Warn about firewalld not working
-
name
:
Warn about firewalld not working
debug
:
debug
:
...
...
sites.yml
View file @
bcb50352
---
---
-
vars
:
-
vars
:
ansible_python_interpreter
:
"
/usr/bin/env
python3"
ansible_python_interpreter
:
"
/usr/bin/env
python3"
when
:
(ansible_distribution == 'Fedora' and
ansible_distribution_version
>= 28)
when
:
(ansible_distribution == 'Fedora' and
(ansible_distribution_version|int)
>= 28)
-
import_playbook
:
common.yml
-
import_playbook
:
common.yml
-
import_playbook
:
clients.yml
-
import_playbook
:
clients.yml
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment