mirror of https://github.com/kewlfft/ansible-aur
add comments for ignore_arch
parent
e643e8f450
commit
63e60fc256
|
@ -18,8 +18,9 @@ The following helpers are supported and automatically selected, if present, in t
|
||||||
|upgrade |no |no |yes, no |Whether or not to upgrade whole system.|
|
|upgrade |no |no |yes, no |Whether or not to upgrade whole system.|
|
||||||
|use |no |auto |auto, yay, aurman, pacaur, trizen, pikaur, makepkg |The helper to use, 'auto' uses the first known helper found and makepkg as a fallback.|
|
|use |no |auto |auto, yay, aurman, pacaur, trizen, pikaur, makepkg |The helper to use, 'auto' uses the first known helper found and makepkg as a fallback.|
|
||||||
|skip_installed |no |no |yes, no |Skip operations if the package is present.|
|
|skip_installed |no |no |yes, no |Skip operations if the package is present.|
|
||||||
|skip_pgp_check |no |no |yes, no |Skip verification of PGP signatures. This is useful when installing packages on a host without GnuPG (properly) configured. Only valid with makepkg.|
|
|
||||||
|aur_only |no |no |yes, no |Limit operation to the AUR. Compatible with yay, aurman, pacaur and trizen.|
|
|aur_only |no |no |yes, no |Limit operation to the AUR. Compatible with yay, aurman, pacaur and trizen.|
|
||||||
|
|skip_pgp_check |no |no |yes, no |Only valid with makepkg. Skip PGP signatures verification of source file, useful when installing packages on a host without GnuPG properly configured.|
|
||||||
|
|ignore_arch |no |no |yes, no |Only valid with makepkg. Ignore a missing or incomplete arch field, useful when the PKGBUILD does no have the arch=('yourarch') field.|
|
||||||
|
|
||||||
### Note
|
### Note
|
||||||
* Either *name* or *upgrade* is required, both cannot be used together.
|
* Either *name* or *upgrade* is required, both cannot be used together.
|
||||||
|
|
|
@ -25,13 +25,6 @@ options:
|
||||||
description:
|
description:
|
||||||
- Name or list of names of the package(s) to install or upgrade.
|
- Name or list of names of the package(s) to install or upgrade.
|
||||||
|
|
||||||
ignore_arch:
|
|
||||||
description:
|
|
||||||
- Set to yes to skip architecture check.
|
|
||||||
Only valid with makepkg.
|
|
||||||
type: bool
|
|
||||||
default: no
|
|
||||||
|
|
||||||
upgrade:
|
upgrade:
|
||||||
description:
|
description:
|
||||||
- Whether or not to upgrade whole system.
|
- Whether or not to upgrade whole system.
|
||||||
|
@ -52,9 +45,16 @@ options:
|
||||||
|
|
||||||
skip_pgp_check:
|
skip_pgp_check:
|
||||||
description:
|
description:
|
||||||
- Skip verification of PGP signatures.
|
- Only valid with makepkg.
|
||||||
|
Skip PGP signatures verification of source file.
|
||||||
This is useful when installing packages on a host without GnuPG (properly) configured.
|
This is useful when installing packages on a host without GnuPG (properly) configured.
|
||||||
Only valid with makepkg.
|
type: bool
|
||||||
|
default: no
|
||||||
|
|
||||||
|
ignore_arch:
|
||||||
|
description:
|
||||||
|
- Only valid with makepkg.
|
||||||
|
Ignore a missing or incomplete arch field, useful when the PKGBUILD does no have the arch=('yourarch') field.
|
||||||
type: bool
|
type: bool
|
||||||
default: no
|
default: no
|
||||||
|
|
||||||
|
@ -153,7 +153,7 @@ def install_with_makepkg(module, package):
|
||||||
if module.params['skip_pgp_check']:
|
if module.params['skip_pgp_check']:
|
||||||
use_cmd['makepkg'].append('--skippgpcheck')
|
use_cmd['makepkg'].append('--skippgpcheck')
|
||||||
if module.params['ignore_arch']:
|
if module.params['ignore_arch']:
|
||||||
use_cmd['makepkg'].append('-A')
|
use_cmd['makepkg'].append('--ignorearch')
|
||||||
rc, out, err = module.run_command(use_cmd['makepkg'], check_rc=True)
|
rc, out, err = module.run_command(use_cmd['makepkg'], check_rc=True)
|
||||||
os.chdir(current_path)
|
os.chdir(current_path)
|
||||||
return (rc, out, err)
|
return (rc, out, err)
|
||||||
|
@ -210,7 +210,7 @@ def main():
|
||||||
'name': {
|
'name': {
|
||||||
'type': 'list',
|
'type': 'list',
|
||||||
},
|
},
|
||||||
'ignore_arch' : {
|
'ignore_arch': {
|
||||||
'default': False,
|
'default': False,
|
||||||
'type': 'bool',
|
'type': 'bool',
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue