Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ansible
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
infrastruktur
ansible
Commits
e1d4f22e
Commit
e1d4f22e
authored
4 months ago
by
Adrian Reyer
Browse files
Options
Downloads
Patches
Plain Diff
ansible current version in nix-shell
parent
a06ffabe
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
README.md
+3
-3
3 additions, 3 deletions
README.md
flake.lock
+4
-4
4 additions, 4 deletions
flake.lock
flake.nix
+1
-1
1 addition, 1 deletion
flake.nix
shell.nix
+3
-1
3 additions, 1 deletion
shell.nix
with
11 additions
and
9 deletions
README.md
+
3
−
3
View file @
e1d4f22e
...
@@ -14,7 +14,7 @@ pip:
...
@@ -14,7 +14,7 @@ pip:
Then, install requirements from Ansible Galaxy:
Then, install requirements from Ansible Galaxy:
```
```
ansible-galaxy install -r requirements.yml
LC_ALL=C.UTF-8
ansible-galaxy install -r requirements.yml
```
```
#### Using nix
#### Using nix
...
@@ -44,12 +44,12 @@ Host *.ffs03
...
@@ -44,12 +44,12 @@ Host *.ffs03
To deploy everything everywhere:
To deploy everything everywhere:
```
```
ansible-playbook -v -i inventory/ all.yml
LC_ALL=C.UTF-8
ansible-playbook -v -i inventory/ all.yml
```
```
To deploy everything on a single host
To deploy everything on a single host
```
```
ansible-playbook -v -i inventory/test --limit example.com all.yml
LC_ALL=C.UTF-8
ansible-playbook -v -i inventory/test --limit example.com all.yml
```
```
where
`example.com`
denotes the hostname as defined in the inventory directory.
where
`example.com`
denotes the hostname as defined in the inventory directory.
...
...
This diff is collapsed.
Click to expand it.
flake.lock
+
4
−
4
View file @
e1d4f22e
...
@@ -20,16 +20,16 @@
...
@@ -20,16 +20,16 @@
},
},
"nixpkgs": {
"nixpkgs": {
"locked": {
"locked": {
"lastModified": 1
635350005
,
"lastModified": 1
737299813
,
"narHash": "sha256-
tAMJnUwfaDEB2aa31jGcu7R7bzGELM9noc91L2PbVjg
=",
"narHash": "sha256-
Qw2PwmkXDK8sPQ5YQ/y/icbQ+TYgbxfjhgnkNJyT1X8
=",
"owner": "NixOS",
"owner": "NixOS",
"repo": "nixpkgs",
"repo": "nixpkgs",
"rev": "1
c1f5649bb9c1b0d98637c8c365228f57126f361
",
"rev": "1
07d5ef05c0b1119749e381451389eded30fb0d5
",
"type": "github"
"type": "github"
},
},
"original": {
"original": {
"owner": "NixOS",
"owner": "NixOS",
"ref": "nixos-2
0.09
",
"ref": "nixos-2
4.11
",
"repo": "nixpkgs",
"repo": "nixpkgs",
"type": "github"
"type": "github"
}
}
...
...
This diff is collapsed.
Click to expand it.
flake.nix
+
1
−
1
View file @
e1d4f22e
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
# $ nix flake update --recreate-lock-file
# $ nix flake update --recreate-lock-file
inputs
=
{
inputs
=
{
flake-utils
.
url
=
"github:numtide/flake-utils"
;
flake-utils
.
url
=
"github:numtide/flake-utils"
;
nixpkgs
.
url
=
"github:NixOS/nixpkgs/nixos-2
0.09
"
;
nixpkgs
.
url
=
"github:NixOS/nixpkgs/nixos-2
4.11
"
;
};
};
outputs
=
{
self
,
nixpkgs
,
flake-utils
}:
outputs
=
{
self
,
nixpkgs
,
flake-utils
}:
...
...
This diff is collapsed.
Click to expand it.
shell.nix
+
3
−
1
View file @
e1d4f22e
...
@@ -13,8 +13,10 @@ with pkgs;
...
@@ -13,8 +13,10 @@ with pkgs;
mkShell
{
mkShell
{
name
=
"ansible-shell"
;
name
=
"ansible-shell"
;
buildInputs
=
[
buildInputs
=
[
ansible
_2_10
ansible
ansible-lint
ansible-lint
bash
direnv
git-crypt
git-crypt
sshpass
sshpass
];
];
...
...
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