Hideki Saito
bcd82bee4f
TEST
2022-03-13 00:37:29 +09:00
Hideki Saito
f6ea11ab5c
TEST
2022-03-12 23:05:47 +09:00
Hideki Saito
03270719f6
TEST
2022-03-12 23:01:18 +09:00
Hideki Saito
34d06077f7
TEST
2022-03-12 22:58:25 +09:00
Hideki Saito
cc5b970040
TEST
2022-03-12 22:51:05 +09:00
Hideki Saito
f173b139ad
TEST
2022-03-12 22:30:32 +09:00
Hideki Saito
f7a820ad7a
TEST
2022-03-12 22:27:10 +09:00
Hideki Saito
6ab8fdd09c
TEST
2022-03-12 22:20:53 +09:00
Hideki Saito
d4b029910d
TEST
2022-03-12 22:15:48 +09:00
Hideki Saito
abaa709d99
TEST
2022-03-12 22:04:43 +09:00
Hideki Saito
4719370d33
TEST
2022-03-12 21:59:41 +09:00
Hideki Saito
fdd8ae0ed3
TEST
2022-03-12 21:54:38 +09:00
Hideki Saito
d9137b4248
TEST
2022-03-12 21:38:13 +09:00
Hideki Saito
fb42b9e7b9
Change src dest dir to a fixed value
...
Signed-off-by: Hideki Saito <saito@fgrep.org>
2022-03-12 21:31:44 +09:00
Hideki Saito
42f5d30ab0
Add delegate_to to each task
...
Signed-off-by: Hideki Saito <saito@fgrep.org>
2022-03-12 21:24:43 +09:00
Hideki Saito
d1814d1d4a
Add delegate_to each task
...
Signed-off-by: Hideki Saito <saito@fgrep.org>
2022-03-12 21:22:49 +09:00
Hideki Saito
6421b000f7
Add delegate_to to "synchronize file to new filename" task
...
Signed-off-by: Hideki Saito <saito@fgrep.org>
2022-03-12 21:13:11 +09:00
Hideki Saito
705dfd8488
Enable "synchronize file to new filename" task
...
Signed-off-by: Hideki Saito <saito@fgrep.org>
2022-03-12 21:05:41 +09:00
Hideki Saito
a8e8737436
Check output_dir path
...
Signed-off-by: Hideki Saito <saito@fgrep.org>
2022-03-12 20:57:08 +09:00
Hideki Saito
fc58c51fba
Check OS distribution before synchronize instegration test task
...
Signed-off-by: Hideki Saito <saito@fgrep.org>
2022-03-12 20:44:28 +09:00
Hideki Saito
d0b949e5f8
Add changelog fragment file
2022-03-12 20:33:10 +09:00
Hideki Saito
71128f978b
Exclude failed tasks
...
Signed-off-by: Hideki Saito <saito@fgrep.org>
2022-03-12 20:09:25 +09:00
Hideki Saito
76bd789291
Exclude "synchronize file to new filename" task and assertion
...
Signed-off-by: Hideki Saito <saito@fgrep.org>
2022-03-12 19:50:52 +09:00
Hideki Saito
c879a70bed
Exclude " synchronize file to new filename" task for testing
...
Signed-off-by: Hideki Saito <saito@fgrep.org>
2022-03-12 19:20:52 +09:00
Hideki Saito
667ebef95c
Refine the handling of exclusive options using mutually_exclusive
...
- Fixes #255
Signed-off-by: Hideki Saito <saito@fgrep.org>
2021-11-29 18:46:28 +09:00
Mike Wallis
d1be5519e6
Whitespaces in paths or current working directory path of playbook causes rsync to incorrectly chdir to current source dir,
...
Example :
cd "/home/a/ansible plays"
task:
- synchronize:
src: a
dest: b
Results in the following error being thrown
fatal: [remote-host]: FAILED! => {"changed": false, "cmd": "/usr/bin/rsync --delay-updates -F --compress --archive --rsh='/usr/bin/ssh -S none -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null' --rsync-path='sudo -u root rsync' --out-format='<<CHANGED>>%i %n%L' /home/a/ansible plays/deployments// remote-user@remote-host:/data/", "msg": "rsync: [sender] link_stat \"/home/a/ansible\" failed: No such file or directory (2)\nrsync: [sender] change_dir \"/home/a/ansible plays/plays/a/\" failed: No such file or directory (2)\nrsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1330) [sender=3.2.3]\n", "rc": 23}
2021-10-25 19:44:43 +01:00
Hideki Saito
8f58cbb41c
Fix integration test error on ansible devel branch
...
- Remove centos6 platforms for integration tests on
the ansible devel branch from the azure-pipelines.
- Add delegate_to to each task of integration test for
synchronized module on devel branch
- Modify invalid parameter test to use key instead of name
for sysctl module
- Replace lookup plugin to slurp module in integration tests
for selinux module
- Add creating working directory task in integration tests
for acl module
Signed-off-by: Hideki Saito <saito@fgrep.org>
2021-10-04 17:10:20 +09:00
Hideki Saito
5a2b3662cb
mount - add a newline at the end of line in fstab
...
* Fixes #210
Signed-off-by: Hideki Saito <saito@fgrep.org>
2021-09-27 12:19:06 +09:00
Ondrej Mosnacek
53d47e1763
selinux: update kernel boot params when disabling/re-enabling SELinux
...
The ability to disable SELinux from userspace based on the configuration
file is being deprecated in favor of the selinux=0 kernel boot
parameter. (Note that this affects only the "full" disable; switching
to/from permissive mode will work the same as before.)
Therefore, add an 'update_kernel_param' module parameter that will cause
it to set/unset the kernel command-line parameter using grubby when
enabling/disabling SELinux. (An explicit parameter was chosen for
backwards compatibility.)
More information:
https://lore.kernel.org/selinux/157836784986.560897.13893922675143903084.stgit@chester/
https://fedoraproject.org/wiki/Changes/Remove_Support_For_SELinux_Runtime_Disable
Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
2021-09-20 10:09:54 +05:30
Abhijeet Kasurde
12941f6d9a
firewalld: Correct usage of queryForwardPort
...
* Correct queryForwardPort API usage
* Enable port_foward_test_cases tests
Fixes : #247
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2021-08-16 14:12:22 +05:30
Abhijeet Kasurde
c244abd82f
Fix integration test fedora 34 with firewalld
...
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2021-08-10 15:17:24 +05:30
mandar242
244c9b2066
sysctl: Fix integration test virtualization type
2021-08-04 21:52:50 +05:30
ansible-zuul[bot]
b3e395a4a3
Merge pull request #239 from Akasurde/firewalld_test
...
Enable firewalld tests
SUMMARY
Signed-off-by: Abhijeet Kasurde akasurde@redhat.com
ISSUE TYPE
Bugfix Pull Request
COMPONENT NAME
tests/integration/targets/firewalld/aliases
tests/integration/targets/setup_pkg_mgr/tasks/main.yml
Reviewed-by: Adam Miller <maxamillion@fedoraproject.org>
Reviewed-by: None <None>
2021-08-02 22:36:00 +00:00
Abhijeet Kasurde
424004c4c0
Enable firewalld tests
...
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2021-08-02 20:26:42 +05:30
ansible-zuul[bot]
a03e652437
Merge pull request #214 from saito-hideki/pr/add_firewalld_info
...
Add new firewalld_info module to ansible.posix collection
SUMMARY
Add new firewalld_info module to ansible.posix collection.
Gathering information about firewalld zone settings
fixes #98
ISSUE TYPE
Feature Pull Request
COMPONENT NAME
ansible.posix.firewalld_info
ADDITIONAL INFORMATION
None
Reviewed-by: Abhijeet Kasurde <None>
Reviewed-by: Hideki Saito <saito@fgrep.org>
2021-07-21 05:19:13 +00:00
ansible-zuul[bot]
e815909859
Merge pull request #215 from quasd/main
...
fix REJECT target name
SUMMARY
Fix setting default target to reject. The target name is %%REJECT%% not REJECT.
https://firewalld.org/documentation/zone/options.html
After this pull request to way to set REJECT would be
- name: "Set target to REJECT for public"
ansible.posix.firewalld:
zone: public
permanent: yes
target: '%%REJECT%%'
state: enabled
become: true
ISSUE TYPE
Bugfix Pull Request
COMPONENT NAME
firewalld
ADDITIONAL INFORMATION
This snippet would fail due to there not being target called REJECT and using %%REJECT%% is not in allowed values for target
- name: "Set target to REJECT for public"
ansible.posix.firewalld:
zone: public
permanent: yes
target: 'REJECT'
state: enabled
become: true
Ansible error
{
"msg": "ERROR: Exception caught: org.fedoraproject.FirewallD1.Exception: INVALID_TARGET: REJECT Permanent operation",
"invocation": {
"module_args": {
"zone": "public",
"permanent": true,
"target": "REJECT",
"state": "enabled",
"immediate": false,
"timeout": 0,
"icmp_block": null,
"icmp_block_inversion": null,
"service": null,
"port": null,
"port_forward": null,
"rich_rule": null,
"source": null,
"interface": null,
"masquerade": null,
"offline": null
}
},
"_ansible_no_log": false,
"changed": false
}
syslog
Jun 29 09:49:39 <hostname retracted> ansible-ansible.posix.firewalld[9015]: Invoked with zone=public permanent=True state=enabled target=REJECT immediate=False timeout=0 icmp_[1850/7279] icmp_block_inversion=None service=None port=None port_forward=None rich_rule=None source=None interface=None masquerade=None offline=None
Jun 29 09:49:39 <hostname retracted> firewalld[915]: ERROR: INVALID_TARGET: REJECT
Reviewed-by: Abhijeet Kasurde <None>
Reviewed-by: None <None>
Reviewed-by: Amin Vakil <info@aminvakil.com>
Reviewed-by: quidame <None>
Reviewed-by: Hideki Saito <saito@fgrep.org>
2021-07-14 17:05:30 +00:00
ansible-zuul[bot]
f2601b01da
Merge pull request #213 from ndgit/fix-24-and-190
...
synchronize: quotes around arguments
fix quoting for specific cmd arguments
Fixes:
#24
#190
ISSUE TYPE:
Bugfix Pull Request
COMPONENT NAME:
module: synchronize
Reviewed-by: Abhijeet Kasurde <None>
Reviewed-by: Robert Rettig <None>
Reviewed-by: Hideki Saito <saito@fgrep.org>
Reviewed-by: Mike Graves <mgraves@redhat.com>
2021-07-14 15:20:20 +00:00
Hideki Saito
27434455e5
Add new firewalld_info module to ansible.posix collection
...
* fixes #98
Signed-off-by: Hideki Saito <saito@fgrep.org>
2021-07-09 23:47:12 +09:00
Robert Rettig
25cfc56f6f
enable integration tests
...
ansible-collections/ansible.posix/pull/213#issuecomment-876480707
2021-07-09 02:28:39 +02:00
ansible-zuul[bot]
68263bfc29
Merge pull request #217 from saito-hideki/pr/restructure_test_for_authorized_key
...
Restructure integration tests for authorized_key module
SUMMARY
Split the large tasks/main.yml in integration tests to each function block and use import_tasks to import for them.
ISSUE TYPE
Feature Pull Request
COMPONENT NAME
tests/integration/targets/authorized_key/
ADDITIONAL INFORMATION
None
2021-07-08 12:27:01 +00:00
Hideki Saito
69d17ed4b7
Restructure integration tests for authorized_key module
...
* Split tasks/main.yml in integration tests to each function block.
Signed-off-by: Hideki Saito <saito@fgrep.org>
2021-07-02 16:27:02 +09:00
Mandar Kulkarni
ed573a8223
Clean up main.yml
2021-07-01 10:12:33 -07:00
Mandar Kulkarni
dd7d29495d
Clean, use blocks in main.yml
2021-07-01 09:27:04 -07:00
Mandar Kulkarni
606e3cfe07
Update main.yml
2021-06-30 16:52:16 -07:00
Mandar Kulkarni
23fadc9f02
Update main.yml
2021-06-30 16:25:01 -07:00
Mandar Kulkarni
6d51660be4
Update main.yml
2021-06-30 15:57:39 -07:00
Mandar Kulkarni
957a7420ca
Update main.yml
2021-06-30 15:26:33 -07:00
Mandar Kulkarni
b740bdaf3a
Merge https://github.com/ansible-collections/ansible.posix into issues/126/mount-return-backup-file
2021-06-30 04:11:28 -04:00
quasd
310c68e6dd
add tests for REJECT target
2021-06-29 11:37:20 +03:00
ansible-zuul[bot]
23afcce8b8
Merge pull request #207 from Andersson007/mount_tests
...
mount integration tests: make them more human readable
Reviewed-by: https://github.com/apps/ansible-zuul
2021-06-11 15:16:12 +00:00