-
Notifications
You must be signed in to change notification settings - Fork 13
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 #50 from pneerincx/develop
Minor improvements.
- Loading branch information
Showing
6 changed files
with
52 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,36 @@ | ||
--- | ||
- name: Make local mountpoint | ||
- name: Make /local mount point. | ||
file: | ||
path: "/local" | ||
mode: 0777 | ||
mode: 0755 | ||
state: directory | ||
owner: root | ||
group: root | ||
|
||
- name: "check mount point /local" | ||
- name: Check /local mount point. | ||
command: mountpoint /local | ||
register: mount_local | ||
failed_when: false | ||
|
||
- name: Create an ext4 filesystem on /dev/vdb | ||
- name: Create an ext4 filesystem on /dev/vdb. | ||
filesystem: | ||
fstype: ext4 | ||
dev: /dev/vdb | ||
when: | ||
mount_local.rc == 1 | ||
|
||
- name: Mount /dev/vdb on /local | ||
- name: Mount /dev/vdb on /local. | ||
mount: | ||
path: /local | ||
src: /dev/vdb | ||
fstype: ext4 | ||
opts: rw,relatime | ||
state: present | ||
|
||
- name: mount all mountpoints in fstab | ||
- name: Mount all mountpoints from fstab. | ||
command: mount -a | ||
args: | ||
warn: false | ||
when: | ||
mount_local.rc == 1 | ||
... |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
# | ||
# Important: maintain correct handler order. | ||
# Handlers are executed in the order in which they are defined | ||
# and not in the order in whch they are listed in a "notify: handler_name" statement! | ||
# | ||
- name: Restart spacewalk service. | ||
service: | ||
name: rhnsd | ||
state: restarted | ||
become: yes | ||
listen: restart_rhnsd | ||
... |
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