-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #405 from cradle8810/jenkins_LXC
Install Jenkins into LXC
- Loading branch information
Showing
8 changed files
with
104 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,21 @@ | ||
--- | ||
- name: "Install zram-tools" | ||
ansible.builtin.apt: | ||
name: "zram-tools" | ||
state: present | ||
update_cache: true | ||
- name: "Install and config zram-tools" | ||
when: | ||
ansible_facts.virtualization_type != 'lxc' | ||
tags: | ||
- zram | ||
block: | ||
- name: "Install zram-tools" | ||
ansible.builtin.apt: | ||
name: "zram-tools" | ||
state: present | ||
update_cache: true | ||
|
||
- name: "Setting zram configurations" | ||
ansible.builtin.template: | ||
src: templates/all/etc/default/zramswap.j2 | ||
dest: /etc/default/zramswap | ||
owner: root | ||
group: root | ||
mode: '0644' | ||
notify: "Restart zramswap" | ||
- name: "Setting zram configurations" | ||
ansible.builtin.template: | ||
src: templates/all/etc/default/zramswap.j2 | ||
dest: /etc/default/zramswap | ||
owner: root | ||
group: root | ||
mode: '0644' | ||
notify: "Restart zramswap" |