Compare commits
392 Commits
v2.14.0b1
...
stable-2.2
| Author | SHA1 | Date | |
|---|---|---|---|
| 611d34acf3 | |||
| e72b41d3eb | |||
| ebae05adf5 | |||
| b08dc0c056 | |||
| 90623b1ffb | |||
| 0b16e9257a | |||
| df14dceb1f | |||
| 6c82b90587 | |||
| 5d0ccb68af | |||
| 672a8b3ec9 | |||
| 4d585c9035 | |||
| d189b668cb | |||
| 55339cd0b4 | |||
| df551246a3 | |||
| 6e3f5404f9 | |||
| 6e474bb995 | |||
| 9adfb2d6f5 | |||
| 0cd22c730c | |||
| 9e6fc2b182 | |||
| f5be18f409 | |||
| da260cb013 | |||
| f0e348f5ee | |||
| f779227859 | |||
| 341ffef08e | |||
| d600266d52 | |||
| 0feb231a9c | |||
| 8899f5e068 | |||
| ad6ccf8ea9 | |||
| 7b6557a23b | |||
| 7cc351a237 | |||
| 34511d1fc9 | |||
| 3f8c56a7e3 | |||
| b12b5c376d | |||
| 792832b53e | |||
| 6ee3a42673 | |||
| 7ff9fa52cf | |||
| 4a852ec287 | |||
| df3e71a83f | |||
| 42afc7dc45 | |||
| 04f65a4d29 | |||
| 9b71a6a0b0 | |||
| 972660968a | |||
| 2273800f7c | |||
| 31300bd36b | |||
| 147c29f0e9 | |||
| de331a9488 | |||
| 36b462ba85 | |||
| b33c41dc5f | |||
| 8b8f0597ed | |||
| 3ba057d28d | |||
| ac4ce95810 | |||
| dae298e429 | |||
| c40d9e63bb | |||
| 75c04b6773 | |||
| 6ca528aea4 | |||
| 1a6e27a6ac | |||
| d45f2d3288 | |||
| e9e39e4fd6 | |||
| 1eda29bfa8 | |||
| 6791061395 | |||
| 694011a897 | |||
| cfd57fcae2 | |||
| 097dbb2daf | |||
| c459f87a42 | |||
| 547dcf4b9e | |||
| f47356f5c7 | |||
| fe3ede881d | |||
| 5dcce0666a | |||
| c92ce0c2ca | |||
| 1262e5fdca | |||
| cb93ecaef9 | |||
| 6176c95838 | |||
| ef24d56c8f | |||
| f1217a9b94 | |||
| 9029547603 | |||
| 81e96c754a | |||
| c4b09cbcb4 | |||
| ef1ecfd2c2 | |||
| 39acdde5aa | |||
| 7b2fcb2d4e | |||
| 4e257fad84 | |||
| 3551de98c6 | |||
| a0104cfe81 | |||
| 5f5d143194 | |||
| 04b2e1fbc0 | |||
| 65ee9d2e46 | |||
| 75de5737f7 | |||
| 21106cc95b | |||
| 89fdca0929 | |||
| 7164956cc6 | |||
| 0240ffe220 | |||
| db22594955 | |||
| 9e9d202d6f | |||
| b2942f1084 | |||
| 26f5e4b32d | |||
| e85f3f4461 | |||
| f4ecbc4c3f | |||
| b12256acf2 | |||
| f649a87a19 | |||
| 2f0dba4f36 | |||
| 6a9572e1e5 | |||
| 5362910000 | |||
| 009ac7b65e | |||
| c6ef74d81b | |||
| 0c153146e3 | |||
| 86eadc5814 | |||
| 4b495d7e43 | |||
| c846e915f8 | |||
| a93e7506a8 | |||
| 49fc0cfe4f | |||
| d1c5a39420 | |||
| 06ed25e788 | |||
| b3daa9dd64 | |||
| 6dee2b21e6 | |||
| cc4634a5e7 | |||
| eb8c26c105 | |||
| 240c388e6c | |||
| 941552d107 | |||
| d8c9b8d347 | |||
| ec84ff6de6 | |||
| 56de9d8ae7 | |||
| 3e2f6e5094 | |||
| 577ea88f78 | |||
| 7e10994b6d | |||
| f6a3c4f071 | |||
| 8439d1813e | |||
| e223349edc | |||
| b25c06725a | |||
| 22f7ca8c97 | |||
| a0a2392c87 | |||
| 3c4ac877f6 | |||
| 38bf7ab71f | |||
| 47e16bef08 | |||
| e05222a4cc | |||
| 32dad09d2e | |||
| a04d0f485b | |||
| 7683715caf | |||
| 3c7987f3a4 | |||
| 3e72e0c173 | |||
| 10a3053525 | |||
| 29762c87c8 | |||
| 477043c422 | |||
| f89abc705b | |||
| 2d8ebbfe8c | |||
| e1b459470d | |||
| 1bdf25561a | |||
| b1e44d1195 | |||
| 8ad67b44dc | |||
| cfbb58adae | |||
| f90a6439c4 | |||
| d8449b3013 | |||
| 1168524f22 | |||
| 99472c42e3 | |||
| 00378515e2 | |||
| 2639016847 | |||
| be07fcc6d9 | |||
| 268645c17a | |||
| e715221a66 | |||
| fe33c937c4 | |||
| cbf1f23e7e | |||
| 0db1c77041 | |||
| ddc8d3d988 | |||
| 3beac89893 | |||
| abc0eeac02 | |||
| 886f8d224e | |||
| 76be9aa693 | |||
| acad2ba246 | |||
| 47cd4867a1 | |||
| 69301f2823 | |||
| 6025e97d13 | |||
| 01fa3d3024 | |||
| 18aba3ebec | |||
| b15e1b743f | |||
| 97444c5e59 | |||
| 4ef8493a11 | |||
| 4854705267 | |||
| ff60245e2b | |||
| a7abe4be19 | |||
| faaabec397 | |||
| 288f6684cf | |||
| b878e8f0f0 | |||
| 4d7760c0b1 | |||
| b9a1b2836a | |||
| 8dee7f3138 | |||
| f4a2332d48 | |||
| a60a7279d0 | |||
| f1f6752686 | |||
| 42e0efbbbf | |||
| ac076dfc12 | |||
| 0bed5d4d85 | |||
| b39f48121d | |||
| bf8902f371 | |||
| 27be8a1022 | |||
| f62224497e | |||
| 529adb574a | |||
| 528426ce0c | |||
| a34793d7fb | |||
| a91788e25a | |||
| 74bb122598 | |||
| 66779698f0 | |||
| d4e8cdc84f | |||
| ead92bee3d | |||
| 23b5764b57 | |||
| 3ce19f4c58 | |||
| 585c57fca4 | |||
| aed616ab31 | |||
| f6b47c53d7 | |||
| 8696ce9e00 | |||
| d637559825 | |||
| c2f9846278 | |||
| 35e198a616 | |||
| 0871d955fe | |||
| 159399fea4 | |||
| 47d5f0f0a8 | |||
| bc539adddc | |||
| ecbac4cf73 | |||
| 1a247de0b6 | |||
| 30d5d5fa67 | |||
| 39cb6797a3 | |||
| 6f5ec79e91 | |||
| 42fb088807 | |||
| 7602a2a030 | |||
| 413f6ab7f1 | |||
| 832cc5bb5b | |||
| 28883975bf | |||
| c23d99b786 | |||
| 0cde6fdaca | |||
| fad7f1de7c | |||
| 6bd4bec9de | |||
| debfb798dd | |||
| dfad25bd38 | |||
| b482cdcf03 | |||
| c920c8bc3b | |||
| 9499ed5360 | |||
| caba50c778 | |||
| 58d8a0fca0 | |||
| aaedf0bd73 | |||
| 366bfe14c3 | |||
| 780d2c4bc4 | |||
| 1cc26cf7cd | |||
| de7fbd407a | |||
| 9d81ad6423 | |||
| 5bf1269aaf | |||
| 3f25088bf0 | |||
| 09fc911a48 | |||
| 2b9659945c | |||
| 182943f3b3 | |||
| b229898f80 | |||
| 5c4a4703d9 | |||
| 06599f49eb | |||
| 3a577966ba | |||
| 6824b1ea1e | |||
| 00bdada50e | |||
| 32971e8639 | |||
| 70824e06b5 | |||
| e13f3e3c07 | |||
| 6adbc7d64a | |||
| 325bf617e9 | |||
| 2c572ba786 | |||
| 503537eb25 | |||
| cdec853e37 | |||
| 23812ab87d | |||
| 1f80e35312 | |||
| c07f6d1bdd | |||
| d559355b29 | |||
| 219a20277f | |||
| 3de9d8373b | |||
| 9d4ce0a94e | |||
| c5d4134f37 | |||
| 95a8bbdbda | |||
| 1ebc94f290 | |||
| a2df07ade3 | |||
| 6b603b026c | |||
| deb1e3ebc7 | |||
| 79e43925b1 | |||
| 0eb23f5a86 | |||
| 066a360a36 | |||
| 731422a6dc | |||
| 96d3f06743 | |||
| eafb4043c9 | |||
| 35938b907d | |||
| bab1ac1d5c | |||
| f3fc029726 | |||
| e4ebe721f5 | |||
| 2fa12438dd | |||
| 9d82a3aa0c | |||
| fef9de30d9 | |||
| 5169252641 | |||
| 4d5368e93b | |||
| 02ed599035 | |||
| bf503e4ff2 | |||
| 9022862624 | |||
| 6c118252b6 | |||
| e97a00de9e | |||
| f5240d2953 | |||
| 92c851a894 | |||
| 84485c29ee | |||
| 806fc1ac74 | |||
| b702d3810e | |||
| 8c6d749ad9 | |||
| 8dbc564fc6 | |||
| e8c97768b7 | |||
| 90d3824678 | |||
| 5bd6a9b76c | |||
| a15d3106e9 | |||
| 3ee4effb7a | |||
| 90b06bc8b4 | |||
| b6e51d670a | |||
| dcc6a15ce3 | |||
| 25e4398d5b | |||
| f15ec38788 | |||
| ddbc01dfe5 | |||
| 6e36d1899c | |||
| ba8e1f88a9 | |||
| 1dfa0e06eb | |||
| e9b7d42205 | |||
| d2998f0811 | |||
| fa8f9e9ead | |||
| 257182e46a | |||
| bce9bfce51 | |||
| cc91c34f36 | |||
| a0a4d0e3f4 | |||
| b9e8aa72be | |||
| fb921042db | |||
| 885b218a7b | |||
| c5b155ba1a | |||
| f6295677c9 | |||
| 1e54f424ec | |||
| b373f67368 | |||
| 924e0726df | |||
| 69ff46b8ca | |||
| 19516d8c19 | |||
| 531023ad1f | |||
| 1af1cca59f | |||
| dde882c91f | |||
| 7ee14f466e | |||
| 9a9f767857 | |||
| d4b8178b4b | |||
| 141ed26e02 | |||
| 5bf850568a | |||
| 24d7555d0b | |||
| d3dd82f3cf | |||
| e1101f78bd | |||
| 3d3ebbf98e | |||
| 261013354f | |||
| 15f4b83564 | |||
| 747a5ef791 | |||
| c1a34b5eff | |||
| b8c25d8f70 | |||
| 05dfed7575 | |||
| b6e317c045 | |||
| a94db01b89 | |||
| 6d909bd65c | |||
| ab3d4731a3 | |||
| ed9d0cdf4a | |||
| cb8c28870c | |||
| 2accc28d14 | |||
| d8155cc4fa | |||
| edff94f96d | |||
| 1acd258931 | |||
| 7034a34ce4 | |||
| 4cd32ee1ac | |||
| 9f4a656929 | |||
| 3db274ac21 | |||
| 3a822faeae | |||
| 3c9966d6fc | |||
| 2a7f728fdf | |||
| aafa7ab471 | |||
| f59430aba8 | |||
| 448cac16db | |||
| ede5eb78ab | |||
| 7063ed8ceb | |||
| be6396d5e9 | |||
| e4efe0b2f1 | |||
| dea2cabe94 | |||
| 08b646684b | |||
| 255b9364ab | |||
| 9596b9218c | |||
| 66ebe7a461 | |||
| 6a76d7fbef | |||
| b878c47d5e | |||
| f7d3ed6eb3 | |||
| 8456686f4b | |||
| fb4c0a085f | |||
| 6b85c31fdf | |||
| 767dba8f24 | |||
| 5109d50adb | |||
| f4b1d87ec0 | |||
| ae52943719 | |||
| 6ba009f913 | |||
| 52173e7707 | |||
| 44faad0593 |
@ -1,218 +0,0 @@
|
||||
trigger:
|
||||
batch: true
|
||||
branches:
|
||||
include:
|
||||
- devel
|
||||
- stable-*
|
||||
|
||||
pr:
|
||||
autoCancel: true
|
||||
branches:
|
||||
include:
|
||||
- devel
|
||||
- stable-*
|
||||
|
||||
schedules:
|
||||
- cron: 0 7 * * *
|
||||
displayName: Nightly
|
||||
always: true
|
||||
branches:
|
||||
include:
|
||||
- devel
|
||||
- stable-*
|
||||
|
||||
variables:
|
||||
- name: checkoutPath
|
||||
value: ansible
|
||||
- name: coverageBranches
|
||||
value: devel
|
||||
- name: entryPoint
|
||||
value: test/utils/shippable/shippable.sh
|
||||
- name: fetchDepth
|
||||
value: 500
|
||||
|
||||
resources:
|
||||
containers:
|
||||
- container: default
|
||||
image: quay.io/ansible/azure-pipelines-test-container:3.0.0
|
||||
|
||||
pool: Standard
|
||||
|
||||
stages:
|
||||
- stage: Sanity
|
||||
dependsOn: []
|
||||
jobs:
|
||||
- template: templates/matrix.yml
|
||||
parameters:
|
||||
nameFormat: Test {0}
|
||||
testFormat: sanity/{0}
|
||||
targets:
|
||||
- test: 1
|
||||
- test: 2
|
||||
- test: 3
|
||||
- test: 4
|
||||
- test: 5
|
||||
- stage: Units
|
||||
dependsOn: []
|
||||
jobs:
|
||||
- template: templates/matrix.yml
|
||||
parameters:
|
||||
nameFormat: Python {0}
|
||||
testFormat: units/{0}
|
||||
targets:
|
||||
- test: 2.7
|
||||
- test: 3.5
|
||||
- test: 3.6
|
||||
- test: 3.7
|
||||
- test: 3.8
|
||||
- test: 3.9
|
||||
- test: '3.10'
|
||||
- test: 3.11
|
||||
- stage: Windows
|
||||
dependsOn: []
|
||||
jobs:
|
||||
- template: templates/matrix.yml
|
||||
parameters:
|
||||
nameFormat: Server {0}
|
||||
testFormat: windows/{0}/1
|
||||
targets:
|
||||
- test: 2012
|
||||
- test: 2012-R2
|
||||
- test: 2016
|
||||
- test: 2019
|
||||
- test: 2022
|
||||
- stage: Remote
|
||||
dependsOn: []
|
||||
jobs:
|
||||
- template: templates/matrix.yml
|
||||
parameters:
|
||||
targets:
|
||||
- name: macOS 12.0
|
||||
test: macos/12.0
|
||||
- name: RHEL 7.9
|
||||
test: rhel/7.9
|
||||
- name: RHEL 8.6 py36
|
||||
test: rhel/8.6@3.6
|
||||
- name: RHEL 8.6 py39
|
||||
test: rhel/8.6@3.9
|
||||
- name: RHEL 9.0
|
||||
test: rhel/9.0
|
||||
- name: FreeBSD 12.3
|
||||
test: freebsd/12.3
|
||||
- name: FreeBSD 13.1
|
||||
test: freebsd/13.1
|
||||
groups:
|
||||
- 1
|
||||
- 2
|
||||
- template: templates/matrix.yml
|
||||
parameters:
|
||||
targets:
|
||||
- name: macOS 12.0
|
||||
test: macos/12.0
|
||||
- name: RHEL 8.6
|
||||
test: rhel/8.6
|
||||
- name: RHEL 9.0
|
||||
test: rhel/9.0
|
||||
- name: FreeBSD 13.1
|
||||
test: freebsd/13.1
|
||||
groups:
|
||||
- 3
|
||||
- 4
|
||||
- 5
|
||||
- stage: Docker
|
||||
dependsOn: []
|
||||
jobs:
|
||||
- template: templates/matrix.yml
|
||||
parameters:
|
||||
testFormat: linux/{0}
|
||||
targets:
|
||||
- name: Alpine 3
|
||||
test: alpine3
|
||||
- name: CentOS 7
|
||||
test: centos7
|
||||
- name: Fedora 36
|
||||
test: fedora36
|
||||
- name: openSUSE 15
|
||||
test: opensuse15
|
||||
- name: Ubuntu 20.04
|
||||
test: ubuntu2004
|
||||
- name: Ubuntu 22.04
|
||||
test: ubuntu2204
|
||||
groups:
|
||||
- 1
|
||||
- 2
|
||||
- template: templates/matrix.yml
|
||||
parameters:
|
||||
testFormat: linux/{0}
|
||||
targets:
|
||||
- name: Alpine 3
|
||||
test: alpine3
|
||||
- name: Fedora 36
|
||||
test: fedora36
|
||||
- name: Ubuntu 22.04
|
||||
test: ubuntu2204
|
||||
groups:
|
||||
- 3
|
||||
- 4
|
||||
- 5
|
||||
- stage: Galaxy
|
||||
dependsOn: []
|
||||
jobs:
|
||||
- template: templates/matrix.yml
|
||||
parameters:
|
||||
nameFormat: Python {0}
|
||||
testFormat: galaxy/{0}/1
|
||||
targets:
|
||||
- test: 3.9
|
||||
- test: '3.10'
|
||||
- test: 3.11
|
||||
- stage: Generic
|
||||
dependsOn: []
|
||||
jobs:
|
||||
- template: templates/matrix.yml
|
||||
parameters:
|
||||
nameFormat: Python {0}
|
||||
testFormat: generic/{0}/1
|
||||
targets:
|
||||
- test: 3.9
|
||||
- test: '3.10'
|
||||
- test: 3.11
|
||||
- stage: Incidental_Windows
|
||||
displayName: Incidental Windows
|
||||
dependsOn: []
|
||||
jobs:
|
||||
- template: templates/matrix.yml
|
||||
parameters:
|
||||
nameFormat: Server {0}
|
||||
testFormat: i/windows/{0}
|
||||
targets:
|
||||
- test: 2012
|
||||
- test: 2012-R2
|
||||
- test: 2016
|
||||
- test: 2019
|
||||
- test: 2022
|
||||
- stage: Incidental
|
||||
dependsOn: []
|
||||
jobs:
|
||||
- template: templates/matrix.yml
|
||||
parameters:
|
||||
testFormat: i/{0}/1
|
||||
targets:
|
||||
- name: IOS Python
|
||||
test: ios/csr1000v/
|
||||
- name: VyOS Python
|
||||
test: vyos/1.1.8/
|
||||
- stage: Summary
|
||||
condition: succeededOrFailed()
|
||||
dependsOn:
|
||||
- Sanity
|
||||
- Units
|
||||
- Windows
|
||||
- Remote
|
||||
- Docker
|
||||
- Galaxy
|
||||
- Generic
|
||||
- Incidental_Windows
|
||||
- Incidental
|
||||
jobs:
|
||||
- template: templates/coverage.yml
|
||||
@ -1,20 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
# Aggregate code coverage results for later processing.
|
||||
|
||||
set -o pipefail -eu
|
||||
|
||||
agent_temp_directory="$1"
|
||||
|
||||
PATH="${PWD}/bin:${PATH}"
|
||||
|
||||
mkdir "${agent_temp_directory}/coverage/"
|
||||
|
||||
options=(--venv --color -v)
|
||||
|
||||
ansible-test coverage combine --group-by command --export "${agent_temp_directory}/coverage/" "${options[@]}"
|
||||
|
||||
if ansible-test coverage analyze targets generate --help >/dev/null 2>&1; then
|
||||
# Only analyze coverage if the installed version of ansible-test supports it.
|
||||
# Doing so allows this script to work unmodified for multiple Ansible versions.
|
||||
ansible-test coverage analyze targets generate "${agent_temp_directory}/coverage/coverage-analyze-targets.json" "${options[@]}"
|
||||
fi
|
||||
@ -1,60 +0,0 @@
|
||||
#!/usr/bin/env python
|
||||
"""
|
||||
Combine coverage data from multiple jobs, keeping the data only from the most recent attempt from each job.
|
||||
Coverage artifacts must be named using the format: "Coverage $(System.JobAttempt) {StableUniqueNameForEachJob}"
|
||||
The recommended coverage artifact name format is: Coverage $(System.JobAttempt) $(System.StageDisplayName) $(System.JobDisplayName)
|
||||
Keep in mind that Azure Pipelines does not enforce unique job display names (only names).
|
||||
It is up to pipeline authors to avoid name collisions when deviating from the recommended format.
|
||||
"""
|
||||
|
||||
from __future__ import (absolute_import, division, print_function)
|
||||
__metaclass__ = type
|
||||
|
||||
import os
|
||||
import re
|
||||
import shutil
|
||||
import sys
|
||||
|
||||
|
||||
def main():
|
||||
"""Main program entry point."""
|
||||
source_directory = sys.argv[1]
|
||||
|
||||
if '/ansible_collections/' in os.getcwd():
|
||||
output_path = "tests/output"
|
||||
else:
|
||||
output_path = "test/results"
|
||||
|
||||
destination_directory = os.path.join(output_path, 'coverage')
|
||||
|
||||
if not os.path.exists(destination_directory):
|
||||
os.makedirs(destination_directory)
|
||||
|
||||
jobs = {}
|
||||
count = 0
|
||||
|
||||
for name in os.listdir(source_directory):
|
||||
match = re.search('^Coverage (?P<attempt>[0-9]+) (?P<label>.+)$', name)
|
||||
label = match.group('label')
|
||||
attempt = int(match.group('attempt'))
|
||||
jobs[label] = max(attempt, jobs.get(label, 0))
|
||||
|
||||
for label, attempt in jobs.items():
|
||||
name = 'Coverage {attempt} {label}'.format(label=label, attempt=attempt)
|
||||
source = os.path.join(source_directory, name)
|
||||
source_files = os.listdir(source)
|
||||
|
||||
for source_file in source_files:
|
||||
source_path = os.path.join(source, source_file)
|
||||
destination_path = os.path.join(destination_directory, source_file + '.' + label)
|
||||
print('"%s" -> "%s"' % (source_path, destination_path))
|
||||
shutil.copyfile(source_path, destination_path)
|
||||
count += 1
|
||||
|
||||
print('Coverage file count: %d' % count)
|
||||
print('##vso[task.setVariable variable=coverageFileCount]%d' % count)
|
||||
print('##vso[task.setVariable variable=outputPath]%s' % output_path)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
@ -1,24 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
# Check the test results and set variables for use in later steps.
|
||||
|
||||
set -o pipefail -eu
|
||||
|
||||
if [[ "$PWD" =~ /ansible_collections/ ]]; then
|
||||
output_path="tests/output"
|
||||
else
|
||||
output_path="test/results"
|
||||
fi
|
||||
|
||||
echo "##vso[task.setVariable variable=outputPath]${output_path}"
|
||||
|
||||
if compgen -G "${output_path}"'/junit/*.xml' > /dev/null; then
|
||||
echo "##vso[task.setVariable variable=haveTestResults]true"
|
||||
fi
|
||||
|
||||
if compgen -G "${output_path}"'/bot/ansible-test-*' > /dev/null; then
|
||||
echo "##vso[task.setVariable variable=haveBotResults]true"
|
||||
fi
|
||||
|
||||
if compgen -G "${output_path}"'/coverage/*' > /dev/null; then
|
||||
echo "##vso[task.setVariable variable=haveCoverageData]true"
|
||||
fi
|
||||
@ -1,101 +0,0 @@
|
||||
#!/usr/bin/env python
|
||||
"""
|
||||
Upload code coverage reports to codecov.io.
|
||||
Multiple coverage files from multiple languages are accepted and aggregated after upload.
|
||||
Python coverage, as well as PowerShell and Python stubs can all be uploaded.
|
||||
"""
|
||||
|
||||
import argparse
|
||||
import dataclasses
|
||||
import pathlib
|
||||
import shutil
|
||||
import subprocess
|
||||
import tempfile
|
||||
import typing as t
|
||||
import urllib.request
|
||||
|
||||
|
||||
@dataclasses.dataclass(frozen=True)
|
||||
class CoverageFile:
|
||||
name: str
|
||||
path: pathlib.Path
|
||||
flags: t.List[str]
|
||||
|
||||
|
||||
@dataclasses.dataclass(frozen=True)
|
||||
class Args:
|
||||
dry_run: bool
|
||||
path: pathlib.Path
|
||||
|
||||
|
||||
def parse_args() -> Args:
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument('-n', '--dry-run', action='store_true')
|
||||
parser.add_argument('path', type=pathlib.Path)
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
# Store arguments in a typed dataclass
|
||||
fields = dataclasses.fields(Args)
|
||||
kwargs = {field.name: getattr(args, field.name) for field in fields}
|
||||
|
||||
return Args(**kwargs)
|
||||
|
||||
|
||||
def process_files(directory: pathlib.Path) -> t.Tuple[CoverageFile, ...]:
|
||||
processed = []
|
||||
for file in directory.joinpath('reports').glob('coverage*.xml'):
|
||||
name = file.stem.replace('coverage=', '')
|
||||
|
||||
# Get flags from name
|
||||
flags = name.replace('-powershell', '').split('=') # Drop '-powershell' suffix
|
||||
flags = [flag if not flag.startswith('stub') else flag.split('-')[0] for flag in flags] # Remove "-01" from stub files
|
||||
|
||||
processed.append(CoverageFile(name, file, flags))
|
||||
|
||||
return tuple(processed)
|
||||
|
||||
|
||||
def upload_files(codecov_bin: pathlib.Path, files: t.Tuple[CoverageFile, ...], dry_run: bool = False) -> None:
|
||||
for file in files:
|
||||
cmd = [
|
||||
str(codecov_bin),
|
||||
'--name', file.name,
|
||||
'--file', str(file.path),
|
||||
]
|
||||
for flag in file.flags:
|
||||
cmd.extend(['--flags', flag])
|
||||
|
||||
if dry_run:
|
||||
print(f'DRY-RUN: Would run command: {cmd}')
|
||||
continue
|
||||
|
||||
subprocess.run(cmd, check=True)
|
||||
|
||||
|
||||
def download_file(url: str, dest: pathlib.Path, flags: int, dry_run: bool = False) -> None:
|
||||
if dry_run:
|
||||
print(f'DRY-RUN: Would download {url} to {dest} and set mode to {flags:o}')
|
||||
return
|
||||
|
||||
with urllib.request.urlopen(url) as resp:
|
||||
with dest.open('w+b') as f:
|
||||
# Read data in chunks rather than all at once
|
||||
shutil.copyfileobj(resp, f, 64 * 1024)
|
||||
|
||||
dest.chmod(flags)
|
||||
|
||||
|
||||
def main():
|
||||
args = parse_args()
|
||||
url = 'https://ci-files.testing.ansible.com/codecov/linux/codecov'
|
||||
with tempfile.TemporaryDirectory(prefix='codecov-') as tmpdir:
|
||||
codecov_bin = pathlib.Path(tmpdir) / 'codecov'
|
||||
download_file(url, codecov_bin, 0o755, args.dry_run)
|
||||
|
||||
files = process_files(args.path)
|
||||
upload_files(codecov_bin, files, args.dry_run)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
@ -1,17 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
# Generate code coverage reports for uploading to Azure Pipelines and codecov.io.
|
||||
|
||||
set -o pipefail -eu
|
||||
|
||||
PATH="${PWD}/bin:${PATH}"
|
||||
|
||||
if ! ansible-test --help >/dev/null 2>&1; then
|
||||
# Install the devel version of ansible-test for generating code coverage reports.
|
||||
# This is only used by Ansible Collections, which are typically tested against multiple Ansible versions (in separate jobs).
|
||||
# Since a version of ansible-test is required that can work the output from multiple older releases, the devel version is used.
|
||||
pip install https://github.com/ansible/ansible/archive/devel.tar.gz --disable-pip-version-check
|
||||
fi
|
||||
|
||||
# Generate stubs using docker (if supported) otherwise fall back to using a virtual environment instead.
|
||||
# The use of docker is required when Powershell code is present, but Ansible 2.12 was the first version to support --docker with coverage.
|
||||
ansible-test coverage xml --group-by command --stub --docker --color -v || ansible-test coverage xml --group-by command --stub --venv --color -v
|
||||
@ -1,34 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
# Configure the test environment and run the tests.
|
||||
|
||||
set -o pipefail -eu
|
||||
|
||||
entry_point="$1"
|
||||
test="$2"
|
||||
read -r -a coverage_branches <<< "$3" # space separated list of branches to run code coverage on for scheduled builds
|
||||
|
||||
export COMMIT_MESSAGE
|
||||
export COMPLETE
|
||||
export COVERAGE
|
||||
export IS_PULL_REQUEST
|
||||
|
||||
if [ "${SYSTEM_PULLREQUEST_TARGETBRANCH:-}" ]; then
|
||||
IS_PULL_REQUEST=true
|
||||
COMMIT_MESSAGE=$(git log --format=%B -n 1 HEAD^2)
|
||||
else
|
||||
IS_PULL_REQUEST=
|
||||
COMMIT_MESSAGE=$(git log --format=%B -n 1 HEAD)
|
||||
fi
|
||||
|
||||
COMPLETE=
|
||||
COVERAGE=
|
||||
|
||||
if [ "${BUILD_REASON}" = "Schedule" ]; then
|
||||
COMPLETE=yes
|
||||
|
||||
if printf '%s\n' "${coverage_branches[@]}" | grep -q "^${BUILD_SOURCEBRANCHNAME}$"; then
|
||||
COVERAGE=yes
|
||||
fi
|
||||
fi
|
||||
|
||||
"${entry_point}" "${test}" 2>&1 | "$(dirname "$0")/time-command.py"
|
||||
@ -1,25 +0,0 @@
|
||||
#!/usr/bin/env python
|
||||
"""Prepends a relative timestamp to each input line from stdin and writes it to stdout."""
|
||||
|
||||
from __future__ import (absolute_import, division, print_function)
|
||||
__metaclass__ = type
|
||||
|
||||
import sys
|
||||
import time
|
||||
|
||||
|
||||
def main():
|
||||
"""Main program entry point."""
|
||||
start = time.time()
|
||||
|
||||
sys.stdin.reconfigure(errors='surrogateescape')
|
||||
sys.stdout.reconfigure(errors='surrogateescape')
|
||||
|
||||
for line in sys.stdin:
|
||||
seconds = time.time() - start
|
||||
sys.stdout.write('%02d:%02d %s' % (seconds // 60, seconds % 60, line))
|
||||
sys.stdout.flush()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
@ -1,29 +0,0 @@
|
||||
# This template adds a job for processing code coverage data.
|
||||
# It will upload results to Azure Pipelines and codecov.io.
|
||||
# Use it from a job stage that completes after all other jobs have completed.
|
||||
# This can be done by placing it in a separate summary stage that runs after the test stage(s) have completed.
|
||||
|
||||
jobs:
|
||||
- job: Coverage
|
||||
displayName: Code Coverage
|
||||
container: default
|
||||
workspace:
|
||||
clean: all
|
||||
steps:
|
||||
- checkout: self
|
||||
fetchDepth: $(fetchDepth)
|
||||
path: $(checkoutPath)
|
||||
- task: DownloadPipelineArtifact@2
|
||||
displayName: Download Coverage Data
|
||||
inputs:
|
||||
path: coverage/
|
||||
patterns: "Coverage */*=coverage.combined"
|
||||
- bash: .azure-pipelines/scripts/combine-coverage.py coverage/
|
||||
displayName: Combine Coverage Data
|
||||
- bash: .azure-pipelines/scripts/report-coverage.sh
|
||||
displayName: Generate Coverage Report
|
||||
condition: gt(variables.coverageFileCount, 0)
|
||||
- bash: .azure-pipelines/scripts/publish-codecov.py "$(outputPath)"
|
||||
displayName: Publish to codecov.io
|
||||
condition: gt(variables.coverageFileCount, 0)
|
||||
continueOnError: true
|
||||
@ -1,55 +0,0 @@
|
||||
# This template uses the provided targets and optional groups to generate a matrix which is then passed to the test template.
|
||||
# If this matrix template does not provide the required functionality, consider using the test template directly instead.
|
||||
|
||||
parameters:
|
||||
# A required list of dictionaries, one per test target.
|
||||
# Each item in the list must contain a "test" or "name" key.
|
||||
# Both may be provided. If one is omitted, the other will be used.
|
||||
- name: targets
|
||||
type: object
|
||||
|
||||
# An optional list of values which will be used to multiply the targets list into a matrix.
|
||||
# Values can be strings or numbers.
|
||||
- name: groups
|
||||
type: object
|
||||
default: []
|
||||
|
||||
# An optional format string used to generate the job name.
|
||||
# - {0} is the name of an item in the targets list.
|
||||
- name: nameFormat
|
||||
type: string
|
||||
default: "{0}"
|
||||
|
||||
# An optional format string used to generate the test name.
|
||||
# - {0} is the name of an item in the targets list.
|
||||
- name: testFormat
|
||||
type: string
|
||||
default: "{0}"
|
||||
|
||||
# An optional format string used to add the group to the job name.
|
||||
# {0} is the formatted name of an item in the targets list.
|
||||
# {{1}} is the group -- be sure to include the double "{{" and "}}".
|
||||
- name: nameGroupFormat
|
||||
type: string
|
||||
default: "{0} - {{1}}"
|
||||
|
||||
# An optional format string used to add the group to the test name.
|
||||
# {0} is the formatted test of an item in the targets list.
|
||||
# {{1}} is the group -- be sure to include the double "{{" and "}}".
|
||||
- name: testGroupFormat
|
||||
type: string
|
||||
default: "{0}/{{1}}"
|
||||
|
||||
jobs:
|
||||
- template: test.yml
|
||||
parameters:
|
||||
jobs:
|
||||
- ${{ if eq(length(parameters.groups), 0) }}:
|
||||
- ${{ each target in parameters.targets }}:
|
||||
- name: ${{ format(parameters.nameFormat, coalesce(target.name, target.test)) }}
|
||||
test: ${{ format(parameters.testFormat, coalesce(target.test, target.name)) }}
|
||||
- ${{ if not(eq(length(parameters.groups), 0)) }}:
|
||||
- ${{ each group in parameters.groups }}:
|
||||
- ${{ each target in parameters.targets }}:
|
||||
- name: ${{ format(format(parameters.nameGroupFormat, parameters.nameFormat), coalesce(target.name, target.test), group) }}
|
||||
test: ${{ format(format(parameters.testGroupFormat, parameters.testFormat), coalesce(target.test, target.name), group) }}
|
||||
@ -1,45 +0,0 @@
|
||||
# This template uses the provided list of jobs to create test one or more test jobs.
|
||||
# It can be used directly if needed, or through the matrix template.
|
||||
|
||||
parameters:
|
||||
# A required list of dictionaries, one per test job.
|
||||
# Each item in the list must contain a "job" and "name" key.
|
||||
- name: jobs
|
||||
type: object
|
||||
|
||||
jobs:
|
||||
- ${{ each job in parameters.jobs }}:
|
||||
- job: test_${{ replace(replace(replace(replace(job.test, '/', '_'), '.', '_'), '-', '_'), '@', '_') }}
|
||||
displayName: ${{ job.name }}
|
||||
container: default
|
||||
workspace:
|
||||
clean: all
|
||||
steps:
|
||||
- checkout: self
|
||||
fetchDepth: $(fetchDepth)
|
||||
path: $(checkoutPath)
|
||||
- bash: .azure-pipelines/scripts/run-tests.sh "$(entryPoint)" "${{ job.test }}" "$(coverageBranches)"
|
||||
displayName: Run Tests
|
||||
- bash: .azure-pipelines/scripts/process-results.sh
|
||||
condition: succeededOrFailed()
|
||||
displayName: Process Results
|
||||
- bash: .azure-pipelines/scripts/aggregate-coverage.sh "$(Agent.TempDirectory)"
|
||||
condition: eq(variables.haveCoverageData, 'true')
|
||||
displayName: Aggregate Coverage Data
|
||||
- task: PublishTestResults@2
|
||||
condition: eq(variables.haveTestResults, 'true')
|
||||
inputs:
|
||||
testResultsFiles: "$(outputPath)/junit/*.xml"
|
||||
displayName: Publish Test Results
|
||||
- task: PublishPipelineArtifact@1
|
||||
condition: eq(variables.haveBotResults, 'true')
|
||||
displayName: Publish Bot Results
|
||||
inputs:
|
||||
targetPath: "$(outputPath)/bot/"
|
||||
artifactName: "Bot $(System.JobAttempt) $(System.StageDisplayName) $(System.JobDisplayName)"
|
||||
- task: PublishPipelineArtifact@1
|
||||
condition: eq(variables.haveCoverageData, 'true')
|
||||
displayName: Publish Coverage Data
|
||||
inputs:
|
||||
targetPath: "$(Agent.TempDirectory)/coverage/"
|
||||
artifactName: "Coverage $(System.JobAttempt) $(System.StageDisplayName) $(System.JobDisplayName)"
|
||||
@ -1,5 +0,0 @@
|
||||
team = "ansible"
|
||||
repo = "ansible"
|
||||
check_sha = "f31421576b00f0b167cdbe61217c31c21a41ac02" # the very first commit in repo
|
||||
fix_commit_msg = false # Don't replace "#" with "GH-"
|
||||
default_branch = "devel"
|
||||
4
.coveragerc
Normal file
4
.coveragerc
Normal file
@ -0,0 +1,4 @@
|
||||
[report]
|
||||
omit =
|
||||
*/python?.?/*
|
||||
*/site-packages/nose/*
|
||||
2
.gitattributes
vendored
2
.gitattributes
vendored
@ -1 +1 @@
|
||||
.github/ export-ignore
|
||||
CHANGELOG.md merge=union
|
||||
|
||||
151
.github/BOTMETA.yml
vendored
151
.github/BOTMETA.yml
vendored
@ -1,151 +0,0 @@
|
||||
automerge: false
|
||||
collection_redirect: true
|
||||
notifications: false
|
||||
files:
|
||||
$module_utils/csharp: &id001
|
||||
labels: windows
|
||||
maintainers: $team_windows_core
|
||||
support: core
|
||||
$module_utils/network:
|
||||
labels: networking
|
||||
$module_utils/network/common:
|
||||
maintainers: $team_networking
|
||||
support: network
|
||||
$module_utils/powershell: *id001
|
||||
$modules:
|
||||
ignored: ryansb tomaszkiewicz
|
||||
$modules/lineinfile.py: $team_ansible samdoran
|
||||
$modules/stat.py:
|
||||
ignored: bpennypacker
|
||||
$modules/unarchive.py:
|
||||
ignored: dagwieers
|
||||
labels: m:unarchive
|
||||
maintainers: pileofrogs
|
||||
$modules/add_host.py:
|
||||
ignored: skvidal
|
||||
maintainers: $team_ansible
|
||||
$modules/get_url.py: ptux
|
||||
$modules/uri.py:
|
||||
ignored: romeotheriault
|
||||
maintainers: $team_ansible
|
||||
$modules/pip.py: Lujeni webknjaz
|
||||
$modules//yum.py:
|
||||
ignored: skvidal
|
||||
maintainers: $team_ansible kustodian
|
||||
$modules/user.py: $team_ansible samdoran
|
||||
$modules/pause.py: samdoran
|
||||
$modules/wait_for.py: gregswift
|
||||
$plugins/cliconf/:
|
||||
labels: networking
|
||||
$plugins/connection/psrp.py: *id001
|
||||
$plugins/connection/winrm.py: *id001
|
||||
$plugins/doc_fragments/url_windows.py:
|
||||
labels: windows
|
||||
maintainers: $team_windows_core
|
||||
support: core
|
||||
$plugins/httpapi:
|
||||
labels: networking
|
||||
maintainers: $team_networking
|
||||
support: network
|
||||
$plugins/netconf/:
|
||||
labels: networking
|
||||
maintainers: $team_networking
|
||||
support: network
|
||||
$plugins/shell/powershell.py: *id001
|
||||
$plugins/terminal/:
|
||||
labels: networking
|
||||
$plugins/terminal/__init__.py:
|
||||
support: network
|
||||
.github/BOTMETA.yml:
|
||||
labels: botmeta
|
||||
support: core
|
||||
docs/:
|
||||
maintainers:
|
||||
- acozine
|
||||
docs/docsite/rst/community/:
|
||||
maintainers:
|
||||
- gundalow
|
||||
docs/docsite/rst/dev_guide/:
|
||||
maintainers:
|
||||
- gundalow
|
||||
docs/docsite/rst/network/:
|
||||
labels: networking
|
||||
maintainers:
|
||||
- samccann
|
||||
docs/docsite/rst/user_guide/windows: *id001
|
||||
hacking/report.py:
|
||||
notified: mattclay
|
||||
hacking/shippable/:
|
||||
notified: mattclay
|
||||
lib/ansible/cli/scripts/ansible_connection_cli_stub.py:
|
||||
keywords:
|
||||
- persistent connection
|
||||
labels: networking
|
||||
lib/ansible/config/ansible_builtin_runtime.yml:
|
||||
labels: runtime
|
||||
maintainers: gundalow
|
||||
lib/ansible/executor/powershell: *id001
|
||||
lib/ansible/inventory:
|
||||
keywords:
|
||||
- core inventory
|
||||
- inventory
|
||||
- inventory parsing
|
||||
lib/ansible/playbook/handler.py:
|
||||
keywords:
|
||||
- handlers
|
||||
lib/ansible/playbook/role:
|
||||
keywords:
|
||||
- roles path
|
||||
- roles_path
|
||||
- role
|
||||
- role path
|
||||
lib/ansible/playbook/role/include.py:
|
||||
keywords:
|
||||
- include role
|
||||
- include_role
|
||||
- role include
|
||||
lib/ansible/playbook/role/requirement.py:
|
||||
keywords:
|
||||
- role dependencies
|
||||
- role dep
|
||||
- role dependency
|
||||
lib/ansible/release.py:
|
||||
notified: mattclay nitzmahone
|
||||
lib/ansible/template:
|
||||
keywords:
|
||||
- jinja
|
||||
- jinja2
|
||||
lib/ansible/utils/collection_loader.py:
|
||||
notified: mattclay nitzmahone
|
||||
test/integration/targets/incidental_:
|
||||
notified: mattclay
|
||||
test/lib/:
|
||||
notified: mattclay
|
||||
test/lib/ansible_test/_util/controller/sanity/validate-modules:
|
||||
keywords:
|
||||
- validate-modules
|
||||
notified:
|
||||
- mattclay
|
||||
test/lib/ansible_test/_util/controller/sanity/validate-modules/validate_modules/main.py:
|
||||
notified:
|
||||
- gundalow
|
||||
- sivel
|
||||
test/lib/ansible_test/_util/controller/sanity/validate-modules/validate_modules/schema.py:
|
||||
notified:
|
||||
- gundalow
|
||||
- sivel
|
||||
test/sanity/:
|
||||
notified: mattclay
|
||||
test/sanity/ignore.txt:
|
||||
notified: tremble
|
||||
test/support/:
|
||||
notified: mattclay
|
||||
test/utils/shippable/:
|
||||
notified: mattclay
|
||||
macros:
|
||||
module_utils: lib/ansible/module_utils
|
||||
modules: lib/ansible/modules
|
||||
plugins: lib/ansible/plugins
|
||||
team_ansible: []
|
||||
team_networking: Qalthos ganeshrn trishnaguha justjais NilashishC danielmellado rohitthakur2590 GomathiselviS
|
||||
team_windows_core: nitzmahone jborean93
|
||||
3
.github/CODE_OF_CONDUCT.md
vendored
3
.github/CODE_OF_CONDUCT.md
vendored
@ -1,3 +0,0 @@
|
||||
# Community Code of Conduct
|
||||
|
||||
Please see the official [Ansible Community Code of Conduct](https://docs.ansible.com/ansible/latest/community/code_of_conduct.html).
|
||||
25
.github/CONTRIBUTING.md
vendored
25
.github/CONTRIBUTING.md
vendored
@ -1,25 +0,0 @@
|
||||
# WELCOME TO ANSIBLE GITHUB
|
||||
|
||||
Hi! Nice to see you here!
|
||||
|
||||
## QUESTIONS ?
|
||||
|
||||
Please see the [Community Guide](https://docs.ansible.com/ansible/latest/community/index.html) for information on how to ask questions on the [mailing lists](https://docs.ansible.com/ansible/latest/community/communication.html#mailing-list-information) and IRC.
|
||||
|
||||
The GitHub issue tracker is not the best place for questions for various reasons, but both IRC and the mailing list are very helpful places for those things, as the community page explains best.
|
||||
|
||||
## CONTRIBUTING ?
|
||||
|
||||
By contributing you agree that these contributions are your own (or approved by your employer) and you grant a full, complete, irrevocable copyright license to all users and developers of the project, present and future, pursuant to the license of the project. You can also read the same [CLA](https://docs.ansible.com/ansible/latest/community/contributor_license_agreement.html) on the Ansible docsite.
|
||||
|
||||
Please review the [Community Guide](https://docs.ansible.com/ansible/latest/community/index.html) for more information on contributing to Ansible.
|
||||
|
||||
## BUG TO REPORT ?
|
||||
|
||||
First and foremost, also check the [Community Guide](https://docs.ansible.com/ansible/latest/community/index.html).
|
||||
|
||||
You can report bugs or make enhancement requests at the [Ansible GitHub issue page](http://github.com/ansible/ansible/issues/new/choose) by filling out the issue template that will be presented.
|
||||
|
||||
Also please make sure you are testing on the latest released version of Ansible or the development branch; see the [Installation Guide](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html) for details.
|
||||
|
||||
Thanks!
|
||||
65
.github/ISSUE_TEMPLATE.md
vendored
65
.github/ISSUE_TEMPLATE.md
vendored
@ -1 +1,64 @@
|
||||
Please raise issues via the [new interface](https://github.com/ansible/ansible/issues/new/choose)
|
||||
<!---
|
||||
Please do not report issues/requests related to Ansible modules here !!
|
||||
|
||||
Report them to the appropriate modules-core or modules-extras project:
|
||||
- https://github.com/ansible/ansible-modules-core/issues
|
||||
- https://github.com/ansible/ansible-modules-extras/issues
|
||||
|
||||
Also verify first that your issue/request is not already reported in GitHub
|
||||
-->
|
||||
|
||||
|
||||
##### ISSUE TYPE
|
||||
<!--- Pick one below and delete the rest: -->
|
||||
- Bug Report
|
||||
- Feature Idea
|
||||
- Documentation Report
|
||||
|
||||
##### COMPONENT NAME
|
||||
<!--- Name of the plugin/task/feature -->
|
||||
|
||||
##### ANSIBLE VERSION
|
||||
<!--- Paste verbatim output from “ansible --version” between quotes below -->
|
||||
```
|
||||
|
||||
```
|
||||
|
||||
##### CONFIGURATION
|
||||
<!---
|
||||
Mention any settings you have changed/added/removed in ansible.cfg
|
||||
(or using the ANSIBLE_* environment variables).
|
||||
-->
|
||||
|
||||
##### OS / ENVIRONMENT
|
||||
<!---
|
||||
Mention the OS you are running Ansible from, and the OS you are
|
||||
managing, or say “N/A” for anything that is not platform-specific.
|
||||
-->
|
||||
|
||||
##### SUMMARY
|
||||
<!--- Explain the problem briefly -->
|
||||
|
||||
##### STEPS TO REPRODUCE
|
||||
<!---
|
||||
For bugs, show exactly how to reproduce the problem.
|
||||
For new features, show how the feature would be used.
|
||||
-->
|
||||
|
||||
<!--- Paste example playbooks or commands between quotes below -->
|
||||
```
|
||||
|
||||
```
|
||||
|
||||
<!--- You can also paste gist.github.com links for larger files -->
|
||||
|
||||
##### EXPECTED RESULTS
|
||||
<!--- What did you expect to happen when running the steps above? -->
|
||||
|
||||
##### ACTUAL RESULTS
|
||||
<!--- What actually happened? If possible run with extra verbosity (-vvvv) -->
|
||||
|
||||
<!--- Paste verbatim command output between quotes below -->
|
||||
```
|
||||
|
||||
```
|
||||
|
||||
265
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
265
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
@ -1,265 +0,0 @@
|
||||
---
|
||||
name: 🐛 Bug report
|
||||
description: Create a report to help us improve
|
||||
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: >
|
||||
**Thank you for wanting to report a bug in ansible-core!**
|
||||
|
||||
|
||||
⚠
|
||||
Verify first that your issue is not [already reported on
|
||||
GitHub][issue search] and keep in mind that we may have to keep
|
||||
the current behavior because [every change breaks someone's
|
||||
workflow][XKCD 1172].
|
||||
We try to be mindful about this.
|
||||
|
||||
Also test if the latest release and devel branch are affected too.
|
||||
|
||||
|
||||
**Tip:** If you are seeking community support, please consider
|
||||
[starting a mailing list thread or chatting in IRC][ML||IRC].
|
||||
|
||||
|
||||
|
||||
[ML||IRC]:
|
||||
https://docs.ansible.com/ansible-core/devel/community/communication.html?utm_medium=github&utm_source=issue_form--bug_report.yml#mailing-list-information
|
||||
|
||||
[issue search]: ../search?q=is%3Aissue&type=issues
|
||||
|
||||
[XKCD 1172]: https://xkcd.com/1172/
|
||||
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Summary
|
||||
description: Explain the problem briefly below.
|
||||
placeholder: >-
|
||||
When I try to do X with ansible-core from the devel branch on GitHub, Y
|
||||
breaks in a way Z under the env E. Here are all the details I know
|
||||
about this problem...
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: dropdown
|
||||
attributes:
|
||||
label: Issue Type
|
||||
description: >
|
||||
Please select the single available option in the drop-down.
|
||||
|
||||
<details>
|
||||
<summary>
|
||||
<em>Why?</em>
|
||||
</summary>
|
||||
|
||||
We would do it by ourselves but unfortunatelly, the curent
|
||||
edition of GitHub Issue Forms Alpha does not support this yet 🤷
|
||||
|
||||
|
||||
_We will make it easier in the future, once GitHub
|
||||
supports dropdown defaults. Promise!_
|
||||
|
||||
</details>
|
||||
# FIXME: Once GitHub allows defining the default choice, update this
|
||||
options:
|
||||
- Bug Report
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: input
|
||||
attributes:
|
||||
label: Component Name
|
||||
description: >
|
||||
Write the short name of the rst file, module, plugin, task or
|
||||
feature below, *use your best guess if unsure*.
|
||||
|
||||
|
||||
**Tip:** Cannot find it in this repository? Please be advised that
|
||||
the source for some parts of the documentation are hosted outside
|
||||
of this repository. If the page you are reporting describes
|
||||
modules/plugins/etc that are not officially supported by the
|
||||
Ansible Core Engineering team, there is a good chance that it is
|
||||
coming from one of the [Ansible Collections maintained by the
|
||||
community][collections org]. If this is the case, please make sure
|
||||
to file an issue under the appropriate project there instead.
|
||||
|
||||
|
||||
[collections org]: /ansible-collections
|
||||
placeholder: dnf, apt, yum, pip, user etc.
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Ansible Version
|
||||
description: >-
|
||||
Paste verbatim output from `ansible --version` below, under
|
||||
the prompt line. Please don't wrap it with tripple backticks — your
|
||||
whole input will be turned into a code snippet automatically.
|
||||
render: console
|
||||
value: |
|
||||
$ ansible --version
|
||||
placeholder: |
|
||||
$ ansible --version
|
||||
ansible [core 2.11.0b4.post0] (detached HEAD ref: refs/) last updated 2021/04/02 00:33:35 (GMT +200)
|
||||
config file = None
|
||||
configured module search path = ['~/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
|
||||
ansible python module location = ~/src/github/ansible/ansible/lib/ansible
|
||||
ansible collection location = ~/.ansible/collections:/usr/share/ansible/collections
|
||||
executable location = bin/ansible
|
||||
python version = 3.9.0 (default, Oct 26 2020, 13:08:59) [GCC 10.2.0]
|
||||
jinja version = 2.11.3
|
||||
libyaml = True
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Configuration
|
||||
description: >-
|
||||
Paste verbatim output from `ansible-config dump --only-changed -t all` below, under the prompt line.
|
||||
(if using a version older than ansible-core 2.12 you should omit the '-t all')
|
||||
Please don't wrap it with tripple backticks — your
|
||||
whole input will be turned into a code snippet automatically.
|
||||
render: console
|
||||
value: |
|
||||
# if using a version older than ansible-core 2.12 you should omit the '-t all'
|
||||
$ ansible-config dump --only-changed -t all
|
||||
placeholder: |
|
||||
# if using a version older than ansible-core 2.12 you should omit the '-t all'
|
||||
$ ansible-config dump --only-changed -t all
|
||||
DEFAULT_GATHERING(~/src/github/ansible/ansible/ansible.cfg) = smart
|
||||
DEFAULT_HOST_LIST(~/src/github/ansible/ansible/ansible.cfg) = ['~/src/github/ansible/ansible/hosts']
|
||||
DEFAULT_VAULT_PASSWORD_FILE(~/src/github/ansible/ansible/ansible.cfg) = ~/src/github/ansible/ansible/vault/print-password.sh
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: OS / Environment
|
||||
description: >-
|
||||
Provide all relevant information below, e.g. target OS versions,
|
||||
network device firmware, etc.
|
||||
placeholder: RHEL 8, CentOS Stream etc.
|
||||
validations:
|
||||
required: true
|
||||
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Steps to Reproduce
|
||||
description: |
|
||||
Describe exactly how to reproduce the problem, using a minimal test-case. It would *really* help us understand your problem if you could also pased any playbooks, configs and commands you used.
|
||||
|
||||
**HINT:** You can paste https://gist.github.com links for larger files.
|
||||
value: |
|
||||
<!--- Paste example playbooks or commands between quotes below -->
|
||||
```yaml (paste below)
|
||||
|
||||
```
|
||||
placeholder: |
|
||||
1. Implement the following playbook:
|
||||
|
||||
```yaml
|
||||
---
|
||||
# ping.yml
|
||||
- hosts: all
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- ping:
|
||||
...
|
||||
```
|
||||
2. Then run `ANSIBLE_DEBUG=1 ansible-playbook ping.yml -vvvvv`
|
||||
3. An error occurs.
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Expected Results
|
||||
description: >-
|
||||
Describe what you expected to happen when running the steps above.
|
||||
placeholder: >-
|
||||
I expected X to happen because I assumed Y and was shocked
|
||||
that it did not.
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Actual Results
|
||||
description: |
|
||||
Describe what actually happened. If possible run with extra verbosity (`-vvvv`).
|
||||
|
||||
Paste verbatim command output and don't wrap it with tripple backticks — your
|
||||
whole input will be turned into a code snippet automatically.
|
||||
render: console
|
||||
placeholder: >-
|
||||
Certificate did not match expected hostname: files.pythonhosted.org. Certificate: {'notAfter': 'Apr 28 19:20:25 2021 GMT', 'subjectAltName': ((u'DNS', 'r.ssl.fastly.net'), (u'DNS', '*.catchpoint.com'), (u'DNS', '*.cnn.io'), (u'DNS', '*.dollarshaveclub.com'), (u'DNS', '*.eater.com'), (u'DNS', '*.fastly.picmonkey.com'), (u'DNS', '*.files.saymedia-content.com'), (u'DNS', '*.ft.com'), (u'DNS', '*.meetupstatic.com'), (u'DNS', '*.nfl.com'), (u'DNS', '*.pagar.me'), (u'DNS', '*.picmonkey.com'), (u'DNS', '*.realself.com'), (u'DNS', '*.sbnation.com'), (u'DNS', '*.shakr.com'), (u'DNS', '*.streamable.com'), (u'DNS', '*.surfly.com'), (u'DNS', '*.theverge.com'), (u'DNS', '*.thrillist.com'), (u'DNS', '*.vox-cdn.com'), (u'DNS', '*.vox.com'), (u'DNS', '*.voxmedia.com'), (u'DNS', 'eater.com'), (u'DNS', 'ft.com'), (u'DNS', 'i.gse.io'), (u'DNS', 'picmonkey.com'), (u'DNS', 'realself.com'), (u'DNS', 'static.wixstatic.com'), (u'DNS', 'streamable.com'), (u'DNS', 'surfly.com'), (u'DNS', 'theverge.com'), (u'DNS', 'vox-cdn.com'), (u'DNS', 'vox.com'), (u'DNS', 'www.joyent.com')), 'subject': ((('countryName', u'US'),), (('stateOrProvinceName', u'California'),), (('localityName', u'San Francisco'),), (('organizationName', u'Fastly, Inc'),), (('commonName', u'r.ssl.fastly.net'),))}
|
||||
Exception:
|
||||
Traceback (most recent call last):
|
||||
File "/usr/local/lib/python2.6/dist-packages/pip/basecommand.py", line 215, in main
|
||||
status = self.run(options, args)
|
||||
File "/usr/local/lib/python2.6/dist-packages/pip/commands/install.py", line 335, in run
|
||||
wb.build(autobuilding=True)
|
||||
File "/usr/local/lib/python2.6/dist-packages/pip/wheel.py", line 749, in build
|
||||
self.requirement_set.prepare_files(self.finder)
|
||||
File "/usr/local/lib/python2.6/dist-packages/pip/req/req_set.py", line 380, in prepare_files
|
||||
ignore_dependencies=self.ignore_dependencies))
|
||||
File "/usr/local/lib/python2.6/dist-packages/pip/req/req_set.py", line 620, in _prepare_file
|
||||
session=self.session, hashes=hashes)
|
||||
File "/usr/local/lib/python2.6/dist-packages/pip/download.py", line 821, in unpack_url
|
||||
hashes=hashes
|
||||
File "/usr/local/lib/python2.6/dist-packages/pip/download.py", line 659, in unpack_http_url
|
||||
hashes)
|
||||
File "/usr/local/lib/python2.6/dist-packages/pip/download.py", line 853, in _download_http_url
|
||||
stream=True,
|
||||
File "/usr/local/lib/python2.6/dist-packages/pip/_vendor/requests/sessions.py", line 521, in get
|
||||
return self.request('GET', url, **kwargs)
|
||||
File "/usr/local/lib/python2.6/dist-packages/pip/download.py", line 386, in request
|
||||
return super(PipSession, self).request(method, url, *args, **kwargs)
|
||||
File "/usr/local/lib/python2.6/dist-packages/pip/_vendor/requests/sessions.py", line 508, in request
|
||||
resp = self.send(prep, **send_kwargs)
|
||||
File "/usr/local/lib/python2.6/dist-packages/pip/_vendor/requests/sessions.py", line 618, in send
|
||||
r = adapter.send(request, **kwargs)
|
||||
File "/usr/local/lib/python2.6/dist-packages/pip/_vendor/cachecontrol/adapter.py", line 47, in send
|
||||
resp = super(CacheControlAdapter, self).send(request, **kw)
|
||||
File "/usr/local/lib/python2.6/dist-packages/pip/_vendor/requests/adapters.py", line 506, in send
|
||||
raise SSLError(e, request=request)
|
||||
SSLError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/ef/ab/aa12712415809bf698e719b307419f953e25344e8f42d557533d7a02b276/netapp_lib-2020.7.16-py2-none-any.whl (Caused by SSLError(CertificateError("hostname 'files.pythonhosted.org' doesn't match either of 'r.ssl.fastly.net', '*.catchpoint.com', '*.cnn.io', '*.dollarshaveclub.com', '*.eater.com', '*.fastly.picmonkey.com', '*.files.saymedia-content.com', '*.ft.com', '*.meetupstatic.com', '*.nfl.com', '*.pagar.me', '*.picmonkey.com', '*.realself.com', '*.sbnation.com', '*.shakr.com', '*.streamable.com', '*.surfly.com', '*.theverge.com', '*.thrillist.com', '*.vox-cdn.com', '*.vox.com', '*.voxmedia.com', 'eater.com', 'ft.com', 'i.gse.io', 'picmonkey.com', 'realself.com', 'static.wixstatic.com', 'streamable.com', 'surfly.com', 'theverge.com', 'vox-cdn.com', 'vox.com', 'www.joyent.com'",),))
|
||||
ERROR: Command "/usr/bin/python2.6 /root/ansible/test/lib/ansible_test/_data/quiet_pip.py install --disable-pip-version-check -r /root/ansible/test/lib/ansible_test/_data/requirements/units.txt -r tests/unit/requirements.txt -c /root/ansible/test/lib/ansible_test/_data/requirements/constraints.txt" returned exit status 2.
|
||||
ERROR: Command "docker exec d47eb360db4ce779c1f690db964655b76e68895c4360ff252c46fe7fe6f5c75a /usr/bin/env ANSIBLE_TEST_CONTENT_ROOT=/root/ansible_collections/netapp/ontap LC_ALL=en_US.UTF-8 /usr/bin/python3.6 /root/ansible/bin/ansible-test units --metadata tests/output/.tmp/metadata-9i2qfrcl.json --truncate 200 --redact --color yes --requirements --python default --requirements-mode only" returned exit status 1.
|
||||
validations:
|
||||
required: true
|
||||
|
||||
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: >
|
||||
*One last thing...*
|
||||
|
||||
|
||||
*Please, complete **all** sections as described, this form
|
||||
is [processed automatically by a robot][ansibot help].*
|
||||
|
||||
|
||||
Thank you for your collaboration!
|
||||
|
||||
|
||||
[ansibot help]:
|
||||
/ansible/ansibullbot/blob/master/ISSUE_HELP.md#for-issue-submitters
|
||||
|
||||
|
||||
- type: checkboxes
|
||||
attributes:
|
||||
label: Code of Conduct
|
||||
description: |
|
||||
Read the [Ansible Code of Conduct][CoC] first.
|
||||
|
||||
[CoC]: https://docs.ansible.com/ansible/latest/community/code_of_conduct.html?utm_medium=github&utm_source=issue_form--bug_report.yml
|
||||
options:
|
||||
- label: I agree to follow the Ansible Code of Conduct
|
||||
required: true
|
||||
...
|
||||
26
.github/ISSUE_TEMPLATE/config.yml
vendored
26
.github/ISSUE_TEMPLATE/config.yml
vendored
@ -1,26 +0,0 @@
|
||||
# Ref: https://help.github.com/en/github/building-a-strong-community/configuring-issue-templates-for-your-repository#configuring-the-template-chooser
|
||||
blank_issues_enabled: false # default: true
|
||||
contact_links:
|
||||
- name: 🔐 Security bug report 🔥
|
||||
url: https://docs.ansible.com/ansible/latest/community/reporting_bugs_and_features.html?utm_medium=github&utm_source=issue_template_chooser
|
||||
about: |
|
||||
Please learn how to report security vulnerabilities here.
|
||||
|
||||
For all security related bugs, email security@ansible.com
|
||||
instead of using this issue tracker and you will receive
|
||||
a prompt response.
|
||||
|
||||
For more information, see
|
||||
https://docs.ansible.com/ansible/latest/community/reporting_bugs_and_features.html
|
||||
- name: 📝 Ansible Code of Conduct
|
||||
url: https://docs.ansible.com/ansible/latest/community/code_of_conduct.html?utm_medium=github&utm_source=issue_template_chooser
|
||||
about: ❤ Be nice to other members of the community. ☮ Behave.
|
||||
- name: 💬 Talks to the community
|
||||
url: https://docs.ansible.com/ansible/latest/community/communication.html?utm_medium=github&utm_source=issue_template_chooser#mailing-list-information
|
||||
about: Please ask and answer usage questions here
|
||||
- name: ⚡ Working groups
|
||||
url: https://github.com/ansible/community/wiki
|
||||
about: Interested in improving a specific area? Become a part of a working group!
|
||||
- name: 💼 For Enterprise
|
||||
url: https://www.ansible.com/products/engine?utm_medium=github&utm_source=issue_template_chooser
|
||||
about: Red Hat offers support for the Ansible Automation Platform
|
||||
201
.github/ISSUE_TEMPLATE/documentation_report.yml
vendored
201
.github/ISSUE_TEMPLATE/documentation_report.yml
vendored
@ -1,201 +0,0 @@
|
||||
---
|
||||
name: 📝 Documentation Report
|
||||
description: Ask us about docs
|
||||
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: >
|
||||
**Thank you for wanting to report a problem with ansible-core
|
||||
documentation!**
|
||||
|
||||
|
||||
Please fill out your suggestions below. If the problem seems
|
||||
straightforward, feel free to go ahead and
|
||||
[submit a pull request] instead!
|
||||
|
||||
|
||||
⚠
|
||||
Verify first that your issue is not [already reported on
|
||||
GitHub][issue search].
|
||||
|
||||
Also test if the latest release and devel branch are affected too.
|
||||
|
||||
|
||||
**Tip:** If you are seeking community support, please consider
|
||||
[starting a mailing list thread or chatting in IRC][ML||IRC].
|
||||
|
||||
|
||||
[ML||IRC]:
|
||||
https://docs.ansible.com/ansible-core/devel/community/communication.html?utm_medium=github&utm_source=issue_form--documentation_report.yml#mailing-list-information
|
||||
|
||||
[issue search]: ../search?q=is%3Aissue&type=issues
|
||||
|
||||
[submit a pull request]:
|
||||
https://docs.ansible.com/ansible-core/devel/community/documentation_contributions.html
|
||||
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Summary
|
||||
description: >
|
||||
Explain the problem briefly below, add suggestions to wording
|
||||
or structure.
|
||||
|
||||
|
||||
**HINT:** Did you know the documentation has a `View on GitHub`
|
||||
link on some pages? Feel free to use it to start a pull request
|
||||
right from the GitHub UI!
|
||||
placeholder: >-
|
||||
I was reading the ansible-core documentation of version X and I'm having
|
||||
problems understanding Y. It would be very helpful if that got
|
||||
rephrased as Z.
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: dropdown
|
||||
attributes:
|
||||
label: Issue Type
|
||||
description: >
|
||||
Please select the single available option in the drop-down.
|
||||
|
||||
<details>
|
||||
<summary>
|
||||
<em>Why?</em>
|
||||
</summary>
|
||||
|
||||
We would do it by ourselves but unfortunatelly, the curent
|
||||
edition of GitHub Issue Forms Alpha does not support this yet 🤷
|
||||
|
||||
|
||||
_We will make it easier in the future, once GitHub
|
||||
supports dropdown defaults. Promise!_
|
||||
|
||||
</details>
|
||||
# FIXME: Once GitHub allows defining the default choice, update this
|
||||
options:
|
||||
- Documentation Report
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: input
|
||||
attributes:
|
||||
label: Component Name
|
||||
description: >
|
||||
Write the short name of the rst file, module, plugin, task or
|
||||
feature below, *use your best guess if unsure*.
|
||||
|
||||
|
||||
**Tip:** Be advised that the source for some parts of the
|
||||
documentation are hosted outside of this repository. If the page
|
||||
you are reporting describes modules/plugins/etc that are not
|
||||
officially supported by the Ansible Core Engineering team, there
|
||||
is a good chance that it is coming from one of the [Ansible
|
||||
Collections maintained by the community][collections org]. If this
|
||||
is the case, please make sure to file an issue under the
|
||||
appropriate project there instead.
|
||||
|
||||
|
||||
[collections org]: /ansible-collections
|
||||
placeholder: docs/docsite/rst/dev_guide/debugging.rst
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Ansible Version
|
||||
description: >-
|
||||
Paste verbatim output from `ansible --version` below, under
|
||||
the prompt line. Please don't wrap it with tripple backticks — your
|
||||
whole input will be turned into a code snippet automatically.
|
||||
render: console
|
||||
value: |
|
||||
$ ansible --version
|
||||
placeholder: |
|
||||
$ ansible --version
|
||||
ansible [core 2.11.0b4.post0] (detached HEAD ref: refs/) last updated 2021/04/02 00:33:35 (GMT +200)
|
||||
config file = None
|
||||
configured module search path = ['~/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
|
||||
ansible python module location = ~/src/github/ansible/ansible/lib/ansible
|
||||
ansible collection location = ~/.ansible/collections:/usr/share/ansible/collections
|
||||
executable location = bin/ansible
|
||||
python version = 3.9.0 (default, Oct 26 2020, 13:08:59) [GCC 10.2.0]
|
||||
jinja version = 2.11.3
|
||||
libyaml = True
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Configuration
|
||||
description: >-
|
||||
Paste verbatim output from `ansible-config dump --only-changed -t all` below, under the prompt line.
|
||||
(if using a version older than ansible-core 2.12 you should omit the '-t all')
|
||||
Please don't wrap it with tripple backticks — your
|
||||
whole input will be turned into a code snippet automatically.
|
||||
render: console
|
||||
value: |
|
||||
# if using a version older than ansible-core 2.12 you should omit the '-t all'
|
||||
$ ansible-config dump --only-changed -t all
|
||||
placeholder: |
|
||||
# if using a version older than ansible-core 2.12 you should omit the '-t all'
|
||||
$ ansible-config dump --only-changed -t all
|
||||
DEFAULT_GATHERING(~/src/github/ansible/ansible/ansible.cfg) = smart
|
||||
DEFAULT_HOST_LIST(~/src/github/ansible/ansible/ansible.cfg) = ['~/src/github/ansible/ansible/hosts']
|
||||
DEFAULT_VAULT_PASSWORD_FILE(~/src/github/ansible/ansible/ansible.cfg) = ~/src/github/ansible/ansible/vault/print-password.sh
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: OS / Environment
|
||||
description: >-
|
||||
Provide all relevant information below, e.g. OS version,
|
||||
browser, etc.
|
||||
placeholder: Fedora 33, Firefox etc.
|
||||
validations:
|
||||
required: true
|
||||
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Additional Information
|
||||
description: |
|
||||
Describe how this improves the documentation, e.g. before/after situation or screenshots.
|
||||
|
||||
**HINT:** You can paste https://gist.github.com links for larger files.
|
||||
placeholder: >-
|
||||
When the improvement is applied, it makes it more straightforward
|
||||
to understand X.
|
||||
validations:
|
||||
required: true
|
||||
|
||||
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: >
|
||||
*One last thing...*
|
||||
|
||||
|
||||
*Please, complete **all** sections as described, this form
|
||||
is [processed automatically by a robot][ansibot help].*
|
||||
|
||||
|
||||
Thank you for your collaboration!
|
||||
|
||||
|
||||
[ansibot help]:
|
||||
/ansible/ansibullbot/blob/master/ISSUE_HELP.md#for-issue-submitters
|
||||
|
||||
|
||||
- type: checkboxes
|
||||
attributes:
|
||||
label: Code of Conduct
|
||||
description: |
|
||||
Read the [Ansible Code of Conduct][CoC] first.
|
||||
|
||||
[CoC]: https://docs.ansible.com/ansible/latest/community/code_of_conduct.html?utm_medium=github&utm_source=issue_form--documentation_report.yml
|
||||
options:
|
||||
- label: I agree to follow the Ansible Code of Conduct
|
||||
required: true
|
||||
...
|
||||
192
.github/ISSUE_TEMPLATE/feature_request.yml
vendored
192
.github/ISSUE_TEMPLATE/feature_request.yml
vendored
@ -1,192 +0,0 @@
|
||||
---
|
||||
name: ✨ Feature request
|
||||
description: Suggest an idea for this project
|
||||
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: >
|
||||
**Thank you for wanting to suggest a feature for ansible-core!**
|
||||
|
||||
|
||||
|
||||
💡
|
||||
Before you go ahead with your request, please first consider if it
|
||||
would be useful for majority of the ansible-core users. As a
|
||||
general rule of thumb, any feature that is only of interest to a
|
||||
small sub group should be [implemented in a third-party Ansible
|
||||
Collection][contribute to collections] or maybe even just your
|
||||
project alone. Be mindful of the fact that the essential
|
||||
ansible-core features have a broad impact.
|
||||
|
||||
If unsure, consider filing a [new proposal] instead outlining your
|
||||
use-cases, the research and implementation considerations. Then,
|
||||
start a discussion on one of the public [IRC meetings] we have just
|
||||
for this.
|
||||
|
||||
|
||||
<details>
|
||||
<summary>
|
||||
❗ Every change breaks someone's workflow.
|
||||
</summary>
|
||||
|
||||
|
||||
[
|
||||
](https://xkcd.com/1172/)
|
||||
</details>
|
||||
|
||||
|
||||
⚠
|
||||
Verify first that your idea is not [already requested on
|
||||
GitHub][issue search].
|
||||
|
||||
Also test if the devel branch does not already implement this.
|
||||
|
||||
|
||||
**Tip:** If you are seeking community support, please consider
|
||||
[starting a mailing list thread or chatting in IRC][ML||IRC].
|
||||
|
||||
|
||||
|
||||
[contribute to collections]:
|
||||
https://docs.ansible.com/ansible-core/devel/community/contributing_maintained_collections.html?utm_medium=github&utm_source=issue_form--feature_request.yml
|
||||
|
||||
[IRC meetings]:
|
||||
https://docs.ansible.com/ansible-core/devel/community/communication.html?utm_medium=github&utm_source=issue_form--feature_request.yml#irc-meetings
|
||||
|
||||
[issue search]: ../search?q=is%3Aissue&type=issues
|
||||
|
||||
[ML||IRC]:
|
||||
https://docs.ansible.com/ansible-core/devel/community/communication.html?utm_medium=github&utm_source=issue_form--feature_request.yml#mailing-list-information
|
||||
|
||||
[new proposal]: ../../proposals/issues/new
|
||||
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Summary
|
||||
description: >
|
||||
Describe the new feature/improvement you would like briefly below.
|
||||
|
||||
|
||||
What's the problem this feature will solve?
|
||||
|
||||
What are you trying to do, that you are unable to achieve
|
||||
with ansible-core as it currently stands?
|
||||
|
||||
|
||||
* Provide examples of real-world use cases that this would enable
|
||||
and how it solves the problem you described.
|
||||
|
||||
* How do you solve this now?
|
||||
|
||||
* Have you tried to work around the problem using other tools?
|
||||
|
||||
* Could there be a different approach to solving this issue?
|
||||
|
||||
|
||||
*Know **exactly** what you want?* Consider filing a [new proposal]
|
||||
instead outlining your research and implementation considerations.
|
||||
|
||||
|
||||
[new proposal]: ../../proposals/issues/new
|
||||
placeholder: >-
|
||||
I am trying to do X with ansible-core from the devel branch on GitHub and
|
||||
I think that implementing a feature Y would be very helpful for me and
|
||||
every other user of ansible-core because of Z.
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: dropdown
|
||||
attributes:
|
||||
label: Issue Type
|
||||
description: >
|
||||
Please select the single available option in the drop-down.
|
||||
|
||||
<details>
|
||||
<summary>
|
||||
<em>Why?</em>
|
||||
</summary>
|
||||
|
||||
We would do it by ourselves but unfortunatelly, the curent
|
||||
edition of GitHub Issue Forms Alpha does not support this yet 🤷
|
||||
|
||||
|
||||
_We will make it easier in the future, once GitHub
|
||||
supports dropdown defaults. Promise!_
|
||||
|
||||
</details>
|
||||
# FIXME: Once GitHub allows defining the default choice, update this
|
||||
options:
|
||||
- Feature Idea
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: input
|
||||
attributes:
|
||||
label: Component Name
|
||||
description: >
|
||||
Write the short name of the module, plugin, task or feature below,
|
||||
*use your best guess if unsure*.
|
||||
|
||||
|
||||
Be aware that a lot of content that used to reside in this repository
|
||||
previously, is now hosted under [individual collection
|
||||
projects][collections org].
|
||||
If this is the case, please make sure to file an issue under the
|
||||
appropriate project there instead.
|
||||
|
||||
|
||||
[collections org]: /ansible-collections
|
||||
placeholder: dnf, apt, yum, pip, user etc.
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Additional Information
|
||||
description: |
|
||||
Describe how the feature would be used, why it is needed and what it would solve.
|
||||
|
||||
**HINT:** You can paste https://gist.github.com links for larger files.
|
||||
value: |
|
||||
<!--- Paste example playbooks or commands between quotes below -->
|
||||
```yaml (paste below)
|
||||
|
||||
```
|
||||
placeholder: >-
|
||||
I asked on https://stackoverflow.com/.... and the community
|
||||
advised me to do X, Y and Z.
|
||||
validations:
|
||||
required: true
|
||||
|
||||
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: >
|
||||
*One last thing...*
|
||||
|
||||
|
||||
*Please, complete **all** sections as described, this form
|
||||
is [processed automatically by a robot][ansibot help].*
|
||||
|
||||
|
||||
Thank you for your collaboration!
|
||||
|
||||
|
||||
[ansibot help]:
|
||||
/ansible/ansibullbot/blob/master/ISSUE_HELP.md#for-issue-submitters
|
||||
|
||||
|
||||
- type: checkboxes
|
||||
attributes:
|
||||
label: Code of Conduct
|
||||
description: |
|
||||
Read the [Ansible Code of Conduct][CoC] first.
|
||||
|
||||
[CoC]: https://docs.ansible.com/ansible/latest/community/code_of_conduct.html?utm_medium=github&utm_source=issue_form--feature_request.yml
|
||||
options:
|
||||
- label: I agree to follow the Ansible Code of Conduct
|
||||
required: true
|
||||
...
|
||||
40
.github/PULL_REQUEST_TEMPLATE.md
vendored
40
.github/PULL_REQUEST_TEMPLATE.md
vendored
@ -1,23 +1,29 @@
|
||||
##### SUMMARY
|
||||
<!--- Describe the change below, including rationale and design decisions -->
|
||||
|
||||
<!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue -->
|
||||
|
||||
##### ISSUE TYPE
|
||||
<!--- Pick one below and delete the rest -->
|
||||
- Bugfix Pull Request
|
||||
- Docs Pull Request
|
||||
- Feature Pull Request
|
||||
- Test Pull Request
|
||||
<!--- Pick one below and delete the rest: -->
|
||||
- Feature Pull Request
|
||||
- New Module Pull Request
|
||||
- Bugfix Pull Request
|
||||
- Docs Pull Request
|
||||
|
||||
##### COMPONENT NAME
|
||||
<!--- Write the short name of the module, plugin, task or feature below -->
|
||||
<!--- Name of the plugin/module/task -->
|
||||
|
||||
##### ADDITIONAL INFORMATION
|
||||
<!--- Include additional information to help people understand the change here -->
|
||||
<!--- A step-by-step reproduction of the problem is helpful if there is no related issue -->
|
||||
|
||||
<!--- Paste verbatim command output below, e.g. before and after your change -->
|
||||
```paste below
|
||||
##### ANSIBLE VERSION
|
||||
<!--- Paste verbatim output from “ansible --version” between quotes below -->
|
||||
```
|
||||
|
||||
```
|
||||
|
||||
##### SUMMARY
|
||||
<!--- Describe the change, including rationale and design decisions -->
|
||||
|
||||
<!---
|
||||
If you are fixing an existing issue, please include "Fixes #nnn" in your
|
||||
commit message and your description; but you should still explain what
|
||||
the change does.
|
||||
-->
|
||||
|
||||
<!-- Paste verbatim command output below, e.g. before and after your change -->
|
||||
```
|
||||
|
||||
```
|
||||
|
||||
16
.github/RELEASE_NAMES.yml
vendored
16
.github/RELEASE_NAMES.yml
vendored
@ -1,16 +0,0 @@
|
||||
---
|
||||
- 2.14.0 C'mon Everybody
|
||||
- 2.13.0 Nobody's Fault but Mine
|
||||
- 2.12.0 Dazed and Confused
|
||||
- 2.11.0 Hey Hey, What Can I Do
|
||||
- 2.10.0 When the Levee Breaks
|
||||
- 2.9.0 Immigrant Song
|
||||
- 2.8.0 How Many More Times
|
||||
- 2.7.0 In the Light
|
||||
- 2.6.0 Heartbreaker
|
||||
- 2.5.0 Kashmir
|
||||
- 2.4.0 Dancing Days
|
||||
- 2.3.0 Ramble On
|
||||
- 2.2.0 The Battle of Evermore
|
||||
- 2.1.0 The Song Remains the Same
|
||||
- 2.0.0 Over the Hills and Far Away
|
||||
15
.github/SECURITY.md
vendored
15
.github/SECURITY.md
vendored
@ -1,15 +0,0 @@
|
||||
# Security Policy
|
||||
|
||||
## Supported Versions
|
||||
|
||||
Ansible applies security fixes according to the 3-versions-back support
|
||||
policy. Please find more information in [our docs](
|
||||
https://docs.ansible.com/ansible/devel/reference_appendices/release_and_maintenance.html#release-status
|
||||
).
|
||||
|
||||
## Reporting a Vulnerability
|
||||
|
||||
We encourage responsible disclosure practices for security
|
||||
vulnerabilities. Please read our [policies for reporting bugs](
|
||||
https://docs.ansible.com/ansible/devel/community/reporting_bugs_and_features.html#reporting-a-bug
|
||||
) if you want to report a security issue that might affect Ansible.
|
||||
110
.gitignore
vendored
110
.gitignore
vendored
@ -2,10 +2,9 @@
|
||||
*.py[co]
|
||||
build
|
||||
AUTHORS.TXT
|
||||
# Emacs backup and autosave files...
|
||||
# Emacs backup files...
|
||||
*~
|
||||
.\#*
|
||||
\#*
|
||||
# RPM stuff...
|
||||
MANIFEST
|
||||
dist
|
||||
@ -17,110 +16,51 @@ rpm-build
|
||||
.idea
|
||||
#IntelliJ IDEA stuff..
|
||||
*.iml
|
||||
#VSCode stuff..
|
||||
.vscode/
|
||||
# Mac OS X stuff...
|
||||
.DS_Store
|
||||
# manpage build stuff...
|
||||
docs/man/man1/ansible*.1
|
||||
docs/man/man1/ansible*.1.asciidoc.in
|
||||
docs/man/man1/ansible.1
|
||||
docs/man/man1/ansible-doc.1
|
||||
docs/man/man1/ansible-galaxy.1
|
||||
docs/man/man1/ansible-playbook.1
|
||||
docs/man/man1/ansible-pull.1
|
||||
docs/man/man1/ansible-vault.1
|
||||
docs/man/man3/*
|
||||
# Sublime stuff
|
||||
*.sublime-project
|
||||
*.sublime-workspace
|
||||
# docsite stuff...
|
||||
docs/docsite/_build
|
||||
docs/docsite/*.html
|
||||
docs/docsite/htmlout
|
||||
docs/docsite/rst/conf.py
|
||||
docs/docsite/rst/index.rst
|
||||
docs/docsite/rst/cli/ansible-*.rst
|
||||
docs/docsite/rst/cli/ansible.rst
|
||||
docs/docsite/rst/dev_guide/collections_galaxy_meta.rst
|
||||
docs/docsite/rst/dev_guide/testing/sanity/index.rst.new
|
||||
docs/docsite/rst/dev_guide/index.rst
|
||||
docs/docsite/rst/modules/*.rst
|
||||
docs/docsite/rst/collections/*.rst
|
||||
!docs/docsite/rst/collections/all_plugins.rst
|
||||
docs/docsite/rst/collections/*/*.rst
|
||||
docs/docsite/rst/playbooks_directives.rst
|
||||
docs/docsite/rst/plugins_by_category.rst
|
||||
docs/docsite/rst/plugins/*/*.rst
|
||||
docs/docsite/rst/reference_appendices/config.rst
|
||||
docs/docsite/rst/reference_appendices/playbooks_keywords.rst
|
||||
docs/docsite/rst_warnings
|
||||
docs/docsite/searchindex.js
|
||||
docs/docsite/_static/*.gif
|
||||
docs/docsite/_static/*.png
|
||||
docs/docsite/_static/websupport.js
|
||||
docsite/rst/modules_by_category.rst
|
||||
docsite/rst/playbooks_directives.rst
|
||||
docsite/rst/list_of_*.rst
|
||||
docsite/rst/*_module.rst
|
||||
docsite/*.html
|
||||
docsite/_static/*.gif
|
||||
docsite/_static/*.png
|
||||
docsite/_static/websupport.js
|
||||
docsite/searchindex.js
|
||||
docsite/htmlout
|
||||
docs-api/rst/
|
||||
docs-api/_build/
|
||||
# deb building stuff...
|
||||
/debian/
|
||||
deb-build
|
||||
# Vim swap files
|
||||
*.swp
|
||||
*.swo
|
||||
[._]*.un~
|
||||
credentials.yml
|
||||
# test output
|
||||
*.retry
|
||||
*.out
|
||||
.pytest_cache/
|
||||
.coverage
|
||||
.tox
|
||||
.cache
|
||||
.pytest_cache
|
||||
results.xml
|
||||
coverage.xml
|
||||
/test/units/cover-html
|
||||
/test/integration/inventory
|
||||
/test/integration/targets/*/backup/
|
||||
/test/cache/*
|
||||
# Development
|
||||
/test/develop
|
||||
# Environments
|
||||
.env
|
||||
.venv
|
||||
env/
|
||||
venv/
|
||||
ENV/
|
||||
env.bak/
|
||||
venv.bak/
|
||||
venv
|
||||
env
|
||||
Vagrantfile
|
||||
.vagrant
|
||||
# Backwards compatibility with `stable-2.9` and earlier branches.
|
||||
# Also used in the `devel` branch during early Ansible 2.10 development.
|
||||
/lib/ansible.egg-info/
|
||||
# First used in the `devel` branch during Ansible 2.10 development.
|
||||
/lib/ansible_base.egg-info/
|
||||
# First used in the `devel` branch during Ansible 2.11 development.
|
||||
/lib/ansible_core.egg-info/
|
||||
# vendored lib dir
|
||||
lib/ansible/_vendor/*
|
||||
!lib/ansible/_vendor/__init__.py
|
||||
# test stuff
|
||||
/test/integration/cloud-config-*.*
|
||||
!/test/integration/cloud-config-*.*.template
|
||||
.python-version
|
||||
/hacking/tests/selinux/*.mod
|
||||
/hacking/tests/selinux/*.pp
|
||||
# Release directory
|
||||
packaging/release/ansible_release
|
||||
/.cache/
|
||||
/test/results/
|
||||
/test/integration/cloud-config-aws.yml
|
||||
/test/integration/inventory.networking
|
||||
/test/integration/inventory.winrm
|
||||
/test/integration/cloud-config-aws.yml
|
||||
/test/integration/cloud-config-cs.ini
|
||||
# python 'rope' stuff
|
||||
.ropeproject
|
||||
# local 'ack' config files
|
||||
.ackrc
|
||||
# default 'coverage html' results
|
||||
htmlcov/
|
||||
# default 'coverage' tool data
|
||||
.coverage
|
||||
# ansible-test coverage results
|
||||
test/units/.coverage.*
|
||||
/test/integration/cloud-config-azure.yml
|
||||
/SYMLINK_CACHE.json
|
||||
changelogs/.plugin-cache.yaml
|
||||
.ansible-test-timeout.json
|
||||
ansible.egg-info/
|
||||
/shippable/
|
||||
|
||||
6
.gitmodules
vendored
Normal file
6
.gitmodules
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
[submodule "lib/ansible/modules/core"]
|
||||
path = lib/ansible/modules/core
|
||||
url = https://github.com/ansible/ansible-modules-core
|
||||
[submodule "lib/ansible/modules/extras"]
|
||||
path = lib/ansible/modules/extras
|
||||
url = https://github.com/ansible/ansible-modules-extras
|
||||
7
.mailmap
7
.mailmap
@ -1,5 +1,5 @@
|
||||
Michael DeHaan <michael.dehaan@gmail.com> <michael@ansibleworks.com>
|
||||
Michael DeHaan <michael.dehaan@gmail.com> Michael DeHaan <michael@ansibleworks.com>
|
||||
Michael DeHaan <michael.dehaan@gmail.com> Michael DeHaan <Michael DeHaan michael@ansibleworks.com>
|
||||
Michael DeHaan <michael.dehaan@gmail.com> <michael@ansible.com>
|
||||
<bcoca@ansible.com> <brian.coca+git@gmail.com>
|
||||
<bcoca@ansible.com> <briancoca+ansible@gmail.com>
|
||||
@ -28,9 +28,8 @@ Will Thames <will@thames.id.au> willthames <willdthames@gmail.com>
|
||||
Will Thames <will@thames.id.au> willthames <will@musc.org.uk>
|
||||
Will Thames <will@thames.id.au> u348095 <will.thames@suncorp.com.au>
|
||||
Will Thames <will@thames.id.au> willthames <will.thames@suncorp.com.au>
|
||||
Will Thames <will@thames.id.au> Will Thames <will.thames@xvt.com.au>
|
||||
nitzmahone <mdavis@ansible.com> Matt Davis <nitzmahone@users.noreply.github.com>
|
||||
Dag Wieers <dag@wieers.com> Dag Wieërs <dag@wieers.com>
|
||||
Dag Wieers <dag@wieers.com> Dag Wieers <dag.wieers@gmail.com>
|
||||
Rene Moser <mail@renemoser.net> René Moser <mail@renemoser.net>
|
||||
Rene Moser <mail@renemoser.net> Rene Moser <rene.moser@swisstxt.ch>
|
||||
|
||||
|
||||
|
||||
22
.yamllint
Normal file
22
.yamllint
Normal file
@ -0,0 +1,22 @@
|
||||
extends: default
|
||||
|
||||
# Disable all cosmetic rules
|
||||
# (see https://github.com/ansible/ansible/pull/15470#issuecomment-214437876)
|
||||
# Only keep 'key-duplicates' and 'new-lines: {type: unix}' checks enabled.
|
||||
|
||||
rules:
|
||||
braces: disable
|
||||
brackets: disable
|
||||
colons: disable
|
||||
commas: disable
|
||||
comments: disable
|
||||
comments-indentation: disable
|
||||
document-start: disable
|
||||
empty-lines: disable
|
||||
hyphens: disable
|
||||
indentation: disable
|
||||
key-duplicates: enable
|
||||
line-length: disable
|
||||
new-line-at-end-of-file: disable
|
||||
new-lines: {type: unix}
|
||||
trailing-spaces: disable
|
||||
2892
CHANGELOG.md
Normal file
2892
CHANGELOG.md
Normal file
File diff suppressed because it is too large
Load Diff
320
CODING_GUIDELINES.md
Normal file
320
CODING_GUIDELINES.md
Normal file
@ -0,0 +1,320 @@
|
||||
Coding Guidelines
|
||||
=================
|
||||
|
||||
Hi! Thanks for interest in contributing to Ansible.
|
||||
|
||||
Here are some guidelines for contributing code. The purpose of this document are to establish what we're looking for in code contributions, and to make sure
|
||||
new contributions know some of the conventions that we've been using.
|
||||
|
||||
We don't think much of this should be too strange to readers familiar with contributing to Python projects, though it helps if we all get on the same page.
|
||||
|
||||
Language
|
||||
========
|
||||
|
||||
* While not all components of Ansible must be in Python, core contributions to the Ansible repo must be written in Python. This is to maximize the ability of everyone to contribute.
|
||||
* If you want to write non-Python ansible modules or inventory scripts, that's fine, but they are not going to get merged in most likely. Sorry!!
|
||||
|
||||
PEP8 and basic style checks
|
||||
===========================
|
||||
|
||||
* PEP8 is a great Python style guide, which you should read.
|
||||
* PEP8 must not be strictly followed in all aspects, but most of it is good advice
|
||||
* In particular, we don't really care about line lengths. Buy a bigger monitor!
|
||||
* To run checks for things we care about, run "make pep8"
|
||||
* Similarly, additional checks can be made with "make pyflakes"
|
||||
* There is no need to submit code changes for pep8 and pyflake fixes, as these break attribution history. Project leadership will make these periodically.
|
||||
* Do not submit pull requests that simply adjust whitespace in the code
|
||||
|
||||
Testing
|
||||
=======
|
||||
|
||||
* Much of ansible's testing needs are in integration, not unit tests. Add module tests there.
|
||||
* That being said, there are unit tests too!
|
||||
* Code written must absolutely pass tests (i.e. "make tests")
|
||||
* You should anticipate any error paths in your code and test down those error paths.
|
||||
* Additions to tests for core code is welcome, but not always possible. Be sure things are at least well tested manually in that case.
|
||||
|
||||
Whitespace
|
||||
==========
|
||||
|
||||
* Four space indent is strictly required
|
||||
* Include meaningful whitespace between lines of code
|
||||
|
||||
Shebang Lines
|
||||
=============
|
||||
|
||||
* /usr/bin/scripts should start with '/usr/bin/env python'
|
||||
* module code should still use '/usr/bin/python' as this is replaced automatically by 'ansible_python_interpreter', see the FAQ in the docs for more info.
|
||||
|
||||
Comments
|
||||
========
|
||||
|
||||
* Readability is one of the most important goals for this project
|
||||
* Comment any non-trivial code where someone might not know why you are doing something in a particular way
|
||||
* Though if something should be commented, that's often a sign someone should write a function
|
||||
* All new functions must have a basic docstring comment
|
||||
* Commenting above a line is preferable to commenting at the end of a line
|
||||
|
||||
Classes
|
||||
=======
|
||||
|
||||
* With the exception of module code (where inline is better), it is desirable to see classes in their own files.
|
||||
* Classes should generally not cause side effects as soon as they are instantiated, move meaningful behavior to methods rather than constructors.
|
||||
|
||||
Functions and Methods
|
||||
=====================
|
||||
|
||||
* In general, functions should not be 'too long' and should describe a meaningful amount of work
|
||||
* When code gets too nested, that's usually the sign the loop body could benefit from being a function
|
||||
* Parts of our existing code are not the best examples of this at times.
|
||||
* Functions should have names that describe what they do, along with docstrings
|
||||
* Functions should be named with_underscores
|
||||
* "Don't repeat yourself" is generally a good philosophy
|
||||
|
||||
Variables
|
||||
=========
|
||||
|
||||
* Use descriptive variable names instead of variables like 'x', unless x is a obvious loop index
|
||||
* Ansible python code uses identifiers like 'ClassesLikeThis and variables_like_this
|
||||
* Module parameters should also use_underscores and not runtogether
|
||||
|
||||
Module Security
|
||||
===============
|
||||
|
||||
* Modules must take steps to avoid passing user input from the shell and always check return codes
|
||||
* always use module.run_command instead of subprocess or Popen or os.system -- this is mandatory
|
||||
* if you use need the shell you must pass use_unsafe_shell=True to module.run_command
|
||||
* if you do not need the shell, avoid using the shell
|
||||
* any variables that can come from the user input with use_unsafe_shell=True must be wrapped by pipes.quote(x)
|
||||
* downloads of https:// resource urls must import module_utils.urls and use the fetch_url method
|
||||
|
||||
Misc Preferences
|
||||
================
|
||||
|
||||
Use the dict constructor where possible when allocating dictionaries:
|
||||
|
||||
# not this:
|
||||
foo = {
|
||||
'a' : 12,
|
||||
'b' : 34
|
||||
}
|
||||
|
||||
# this:
|
||||
foo = dict(
|
||||
a = 12,
|
||||
b = 34
|
||||
)
|
||||
|
||||
Line up variables
|
||||
|
||||
# not this
|
||||
a = 12
|
||||
foosball = 34
|
||||
xyz = 'dog'
|
||||
|
||||
# this
|
||||
a = 12
|
||||
foosball = 34
|
||||
xyz = 'dog'
|
||||
|
||||
Don't use line continuations:
|
||||
|
||||
# no
|
||||
if (this_is_a_very_long_line and foo and \
|
||||
i_am_going_to_continue_it):
|
||||
bar()
|
||||
|
||||
# better:
|
||||
if (this_is_a_very_long_line and foo and i_am_going_to_continue_it):
|
||||
bar()
|
||||
|
||||
Spacing:
|
||||
|
||||
# no
|
||||
x=[1,2,3]
|
||||
|
||||
# no
|
||||
x = [1,2,3]
|
||||
|
||||
# yes
|
||||
x = [ 1, 2, 3 ]
|
||||
|
||||
Spacing continued:
|
||||
|
||||
# no
|
||||
x=foo(12)
|
||||
|
||||
# no
|
||||
x = foo( 12 )
|
||||
|
||||
# yes
|
||||
x = foo(12)
|
||||
|
||||
Licenses
|
||||
========
|
||||
|
||||
Every file should have a license header, including the copyright of the original author. Major additions to the module are allowed
|
||||
to add an additional copyright line, and this is especially true of rewrites, but original authorship copyright messages should be preserved.
|
||||
|
||||
All contributions to the core repo should preserve original licenses and new contributions must include the GPLv3 header.
|
||||
|
||||
Module Documentation
|
||||
====================
|
||||
|
||||
All module pull requests must include a DOCUMENTATION docstring (YAML format,
|
||||
see other modules for examples) as well as an EXAMPLES docstring, which is free form.
|
||||
|
||||
When adding new modules, any new parameter must have a "version_added" attribute.
|
||||
When submitting a new module, the module should have a "version_added" attribute in the
|
||||
pull request as well, set to the current development version.
|
||||
|
||||
Be sure to check grammar and spelling.
|
||||
|
||||
It's frequently the case that modules get submitted with YAML that isn't valid,
|
||||
so you can run "make webdocs" from the checkout to preview your module's documentation.
|
||||
If it fails to build, take a look at your DOCUMENTATION string
|
||||
or you might have a Python syntax error in there too.
|
||||
|
||||
Python Imports
|
||||
==============
|
||||
|
||||
To make it clear what a module is importing, imports should not be sprinkled throughout the code.
|
||||
|
||||
Python Imports should happen at the top of the file, exempting code from module_utils.
|
||||
|
||||
When a conditional runtime import is required, do so something like this instead:
|
||||
|
||||
HAS_FOO = False
|
||||
try:
|
||||
import foo
|
||||
HAS_FOO = True
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
...
|
||||
|
||||
if not HAS_FOO:
|
||||
raise Exception("the foo library is required")
|
||||
|
||||
This makes it clear what optional dependencies are but allows this to be deferred until runtime. In the case of module code, the raising of the Exception will be replaced
|
||||
with a "module.exit_json" call.
|
||||
|
||||
Exceptions
|
||||
==========
|
||||
|
||||
In the main body of the code, use typed exceptions where possible:
|
||||
|
||||
# not this
|
||||
raise Exception("panic!")
|
||||
|
||||
# this
|
||||
from ansible import errors
|
||||
...
|
||||
raise errors.AnsibleError("panic!")
|
||||
|
||||
Similarly, exception checking should be fine grained:
|
||||
|
||||
# not this
|
||||
try:
|
||||
foo()
|
||||
except:
|
||||
bar()
|
||||
|
||||
# but this
|
||||
try:
|
||||
foo()
|
||||
except SomeTypedException:
|
||||
bar()
|
||||
|
||||
List Comprehensions
|
||||
===================
|
||||
|
||||
In general list comprehensions are always preferred to map() and filter() calls.
|
||||
|
||||
However, they can be abused. Optimize for readability, and avoid nesting them too deeply.
|
||||
|
||||
Regexes
|
||||
=======
|
||||
|
||||
There is a time and place for them, but here's an illustrative joke.
|
||||
|
||||
"A developer had a problem, and used a regular expression to solve it. Now the developer had two problems".
|
||||
|
||||
Often regexes are difficult to maintain, and a trusty call to other string operations can be a great solution, faster,
|
||||
and more readable.
|
||||
|
||||
File Conventions
|
||||
================
|
||||
|
||||
If a piece of code looks for a named YAML file in a directory, it should assume it can take no extension, or an extension of '.yml' or '.yaml'.
|
||||
This should be true against all code that loads files.
|
||||
|
||||
Any code that uses directories should consider the possibility that the directory may be symlink.
|
||||
|
||||
New Ansible language parameters
|
||||
===============================
|
||||
|
||||
If adding a new parameter, like 'can_fizzbuzz: True/False' be sure the value of the parameter is templated somewhere in the Runner code, as if anything can be parameterized in Ansible,
|
||||
there is a user that will try to parameterize it.
|
||||
|
||||
String Find
|
||||
===========
|
||||
|
||||
Use 'in':
|
||||
|
||||
# not this:
|
||||
if x.find('foo') != -1:
|
||||
|
||||
# this:
|
||||
if 'foo' in x:
|
||||
|
||||
String checks
|
||||
=============
|
||||
|
||||
To test if something is a string, consider that it may be unicode.
|
||||
|
||||
# no
|
||||
if type(x) == str:
|
||||
|
||||
# yes
|
||||
from ansible.compat.six import string_types
|
||||
if isinstance(x, string_types):
|
||||
|
||||
Cleverness
|
||||
==========
|
||||
|
||||
Ansible's code is intended to be read by as many people as possible, so we don't particularly encourage clever or heavily idiomatic code.
|
||||
|
||||
In particular, metaclasses are probably not appropriate, however entertaining they may be to add.
|
||||
|
||||
Git Practices
|
||||
=============
|
||||
|
||||
Pull requests cannot be accepted that contain merge commits.
|
||||
|
||||
Always do "git pull --rebase" and "git rebase" vs "git pull" or "git merge".
|
||||
|
||||
Always create a new branch for each pull request to avoid intertwingling different features or fixes on the same branch.
|
||||
|
||||
|
||||
Python Version Compliance
|
||||
=========================
|
||||
|
||||
All code in Ansible core must support a minimum version of Python 2.6.
|
||||
|
||||
Module code must support a minimum of Python 2.4, with occasional exception for modules that require code that themselves require 2.6 and later.
|
||||
|
||||
A quick reminder is that list comprehensions in Python 2.4 are not as fully fleshed out, there are no 'dict' comprehensions, and there is no 'with' statement.
|
||||
But otherwise it's pretty much all the same.
|
||||
|
||||
The End
|
||||
=======
|
||||
|
||||
This was not meant to be a scary document, so we hope it wasn't, but we also hope this helps you write code that is easier to maintain by others in the future.
|
||||
If you have questions about this document, please ask on the ansible-devel mailing list.
|
||||
|
||||
Thank you!
|
||||
|
||||
|
||||
|
||||
|
||||
29
CONTRIBUTING.md
Normal file
29
CONTRIBUTING.md
Normal file
@ -0,0 +1,29 @@
|
||||
# WELCOME TO ANSIBLE GITHUB
|
||||
|
||||
Hi! Nice to see you here!
|
||||
|
||||
|
||||
## QUESTIONS ?
|
||||
|
||||
Please see the [community page](http://docs.ansible.com/community.html) for information on how to ask questions on the [mailing lists](http://docs.ansible.com/community.html#mailing-list-information) and IRC.
|
||||
|
||||
The GitHub issue tracker is not the best place for questions for various reasons, but both IRC and the mailing list are very helpful places for those things, as the community page explains best.
|
||||
|
||||
|
||||
## CONTRIBUTING ?
|
||||
|
||||
Please see the [community page](http://docs.ansible.com/community.html) for information regarding the contribution process. Important license agreement information is also included on that page.
|
||||
|
||||
|
||||
## BUG TO REPORT ?
|
||||
|
||||
First and foremost, also check the [community page](http://docs.ansible.com/community.html).
|
||||
|
||||
You can report bugs or make enhancement requests at the [Ansible GitHub issue page](http://github.com/ansible/ansible/issues/new) by filling out the issue template that will be presented.
|
||||
|
||||
Also please make sure you are testing on the latest released version of Ansible or the development branch. You can find the latest releases and development branch at:
|
||||
|
||||
- https://github.com/ansible/ansible/releases
|
||||
- https://github.com/ansible/ansible/archive/devel.tar.gz
|
||||
|
||||
Thanks!
|
||||
68
MANIFEST.in
68
MANIFEST.in
@ -1,54 +1,24 @@
|
||||
include README.rst
|
||||
include COPYING
|
||||
include SYMLINK_CACHE.json
|
||||
include requirements.txt
|
||||
recursive-include docs *
|
||||
include docs/docsite/rst/collections/all_plugins.rst
|
||||
exclude docs/docsite/rst_warnings
|
||||
exclude docs/docsite/rst/conf.py
|
||||
exclude docs/docsite/rst/index.rst
|
||||
exclude docs/docsite/rst/dev_guide/index.rst
|
||||
exclude docs/docsite/rst/dev_guide/testing/sanity/bin-symlinks.rst
|
||||
exclude docs/docsite/rst/dev_guide/testing/sanity/botmeta.rst
|
||||
exclude docs/docsite/rst/dev_guide/testing/sanity/integration-aliases.rst
|
||||
exclude docs/docsite/rst/dev_guide/testing/sanity/release-names.rst
|
||||
recursive-exclude docs/docsite/_build *
|
||||
recursive-exclude docs/docsite/_extensions *.pyc *.pyo
|
||||
prune v2
|
||||
prune docsite
|
||||
prune ticket_stubs
|
||||
prune packaging
|
||||
prune test
|
||||
prune hacking
|
||||
include README.md COPYING
|
||||
include examples/hosts
|
||||
include examples/ansible.cfg
|
||||
include examples/scripts/ConfigureRemotingForAnsible.ps1
|
||||
include examples/scripts/upgrade_to_ps3.ps1
|
||||
include lib/ansible/keyword_desc.yml
|
||||
recursive-include lib/ansible/executor/powershell *.ps1
|
||||
recursive-include lib/ansible/module_utils/csharp *.cs
|
||||
recursive-include lib/ansible/module_utils/powershell *.psm1
|
||||
recursive-include lib/ansible/modules/windows *.ps1
|
||||
recursive-include lib/ansible/galaxy/data *.yml *.j2 README.md ansible.cfg inventory .git_keep
|
||||
recursive-include lib/ansible/config *.yml
|
||||
recursive-include lib/ansible/modules *.yml
|
||||
recursive-include lib/ansible/plugins/test *.yml
|
||||
recursive-include lib/ansible/plugins/filter *.yml
|
||||
recursive-include licenses *.txt
|
||||
include lib/ansible/module_utils/powershell.ps1
|
||||
recursive-include lib/ansible/modules *
|
||||
recursive-include lib/ansible/galaxy/data *
|
||||
recursive-include docs *
|
||||
recursive-include packaging *
|
||||
recursive-include test/ansible_test *.py Makefile
|
||||
recursive-include test/integration *
|
||||
recursive-include test/lib/ansible_test/config *.yml *.template
|
||||
recursive-include test/lib/ansible_test/_data *.cfg *.in *.ini *.ps1 *.txt *.yml coveragerc
|
||||
recursive-include test/lib/ansible_test/_util *.cfg *.ini *.json *.ps1 *.psd1 *.py *.sh *.txt *.yml
|
||||
recursive-include test/lib/ansible_test/_util/controller/sanity/validate-modules validate-modules
|
||||
recursive-include test/sanity *.in *.json *.py *.txt
|
||||
recursive-include test/support *.py *.ps1 *.psm1 *.cs
|
||||
exclude test/sanity/code-smell/botmeta.*
|
||||
exclude test/sanity/code-smell/release-names.*
|
||||
exclude test/lib/ansible_test/_internal/commands/sanity/bin_symlinks.py
|
||||
exclude test/lib/ansible_test/_internal/commands/sanity/integration_aliases.py
|
||||
recursive-include test/units *
|
||||
include Makefile
|
||||
include VERSION
|
||||
include MANIFEST.in
|
||||
include changelogs/CHANGELOG*.rst
|
||||
include changelogs/changelog.yaml
|
||||
recursive-include hacking/build_library *.py
|
||||
include hacking/build-ansible.py
|
||||
include hacking/test-module.py
|
||||
include hacking/update-sanity-requirements.py
|
||||
include bin/*
|
||||
include CHANGELOG.md
|
||||
include contrib/README.md
|
||||
recursive-include contrib/inventory *
|
||||
exclude lib/ansible/modules/core/.git*
|
||||
exclude lib/ansible/modules/extras/.git*
|
||||
prune lib/ansible/modules/core/.git
|
||||
prune lib/ansible/modules/extras/.git
|
||||
|
||||
321
Makefile
321
Makefile
@ -1,157 +1,298 @@
|
||||
#!/usr/bin/make
|
||||
# WARN: gmake syntax
|
||||
########################################################
|
||||
# Makefile for Ansible
|
||||
#
|
||||
# useful targets:
|
||||
# make clean ---------------- clean up
|
||||
# make sdist ---------------- produce a tarball
|
||||
# make tests ---------------- run the tests (see https://docs.ansible.com/ansible/devel/dev_guide/testing_units.html for requirements)
|
||||
# make srpm ----------------- produce a SRPM
|
||||
# make rpm ----------------- produce RPMs
|
||||
# make deb-src -------------- produce a DEB source
|
||||
# make deb ------------------ produce a DEB
|
||||
# make docs ----------------- rebuild the manpages (results are checked in)
|
||||
# make tests ---------------- run the tests (see test/README.md for requirements)
|
||||
# make pyflakes, make pep8 -- source code checks
|
||||
|
||||
########################################################
|
||||
# variable section
|
||||
|
||||
NAME = ansible-core
|
||||
NAME = ansible
|
||||
OS = $(shell uname -s)
|
||||
PREFIX ?= '/usr/local'
|
||||
SDIST_DIR ?= 'dist'
|
||||
|
||||
# Manpages are currently built with asciidoc -- would like to move to markdown
|
||||
# This doesn't evaluate until it's called. The -D argument is the
|
||||
# directory of the target file ($@), kinda like `dirname`.
|
||||
MANPAGES ?= $(patsubst %.rst.in,%,$(wildcard ./docs/man/man1/ansible*.1.rst.in))
|
||||
ifneq ($(shell command -v rst2man 2>/dev/null),)
|
||||
ASCII2MAN = rst2man $< $@
|
||||
else ifneq ($(shell command -v rst2man.py 2>/dev/null),)
|
||||
ASCII2MAN = rst2man.py $< $@
|
||||
MANPAGES := docs/man/man1/ansible.1 docs/man/man1/ansible-playbook.1 docs/man/man1/ansible-pull.1 docs/man/man1/ansible-doc.1 docs/man/man1/ansible-galaxy.1 docs/man/man1/ansible-vault.1
|
||||
ifneq ($(shell which a2x 2>/dev/null),)
|
||||
ASCII2MAN = a2x -L -D $(dir $@) -d manpage -f manpage $<
|
||||
ASCII2HTMLMAN = a2x -L -D docs/html/man/ -d manpage -f xhtml
|
||||
else
|
||||
ASCII2MAN = @echo "ERROR: rst2man from docutils command is not installed but is required to build $(MANPAGES)" && exit 1
|
||||
ASCII2MAN = @echo "ERROR: AsciiDoc 'a2x' command is not installed but is required to build $(MANPAGES)" && exit 1
|
||||
endif
|
||||
|
||||
PYTHON ?= python
|
||||
GENERATE_CLI = hacking/build-ansible.py generate-man
|
||||
PYTHON=python
|
||||
SITELIB = $(shell $(PYTHON) -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")
|
||||
|
||||
# fetch version from project release.py as single source-of-truth
|
||||
VERSION := $(shell $(PYTHON) packaging/release/versionhelper/version_helper.py --raw || echo error)
|
||||
ifeq ($(findstring error,$(VERSION)), error)
|
||||
$(error "version_helper failed")
|
||||
# VERSION file provides one place to update the software version
|
||||
VERSION := $(shell cat VERSION | cut -f1 -d' ')
|
||||
RELEASE := $(shell cat VERSION | cut -f2 -d' ')
|
||||
|
||||
# Get the branch information from git
|
||||
ifneq ($(shell which git),)
|
||||
GIT_DATE := $(shell git log -n 1 --format="%ai")
|
||||
GIT_HASH := $(shell git log -n 1 --format="%h")
|
||||
GIT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD | sed 's/[-_.\/]//g')
|
||||
GITINFO = .$(GIT_HASH).$(GIT_BRANCH)
|
||||
else
|
||||
GITINFO = ""
|
||||
endif
|
||||
|
||||
# ansible-test parameters
|
||||
ANSIBLE_TEST ?= bin/ansible-test
|
||||
TEST_FLAGS ?=
|
||||
ifeq ($(shell echo $(OS) | egrep -c 'Darwin|FreeBSD|OpenBSD|DragonFly'),1)
|
||||
DATE := $(shell date -j -r $(shell git log -n 1 --format="%at") +%Y%m%d%H%M)
|
||||
else
|
||||
DATE := $(shell date --utc --date="$(GIT_DATE)" +%Y%m%d%H%M)
|
||||
endif
|
||||
|
||||
# ansible-test units parameters (make test / make test-py3)
|
||||
PYTHON_VERSION ?= $(shell python2 -c 'import sys; print("%s.%s" % sys.version_info[:2])')
|
||||
PYTHON3_VERSION ?= $(shell python3 -c 'import sys; print("%s.%s" % sys.version_info[:2])')
|
||||
# DEB build parameters
|
||||
DEBUILD_BIN ?= debuild
|
||||
DEBUILD_OPTS = --source-option="-I"
|
||||
DPUT_BIN ?= dput
|
||||
DPUT_OPTS ?=
|
||||
DEB_DATE := $(shell LC_TIME=C date +"%a, %d %b %Y %T %z")
|
||||
ifeq ($(OFFICIAL),yes)
|
||||
DEB_RELEASE = $(RELEASE)ppa
|
||||
# Sign OFFICIAL builds using 'DEBSIGN_KEYID'
|
||||
# DEBSIGN_KEYID is required when signing
|
||||
ifneq ($(DEBSIGN_KEYID),)
|
||||
DEBUILD_OPTS += -k$(DEBSIGN_KEYID)
|
||||
endif
|
||||
else
|
||||
DEB_RELEASE = 100.git$(DATE)$(GITINFO)
|
||||
# Do not sign unofficial builds
|
||||
DEBUILD_OPTS += -uc -us
|
||||
DPUT_OPTS += -u
|
||||
endif
|
||||
DEBUILD = $(DEBUILD_BIN) $(DEBUILD_OPTS)
|
||||
DEB_PPA ?= ppa
|
||||
# Choose the desired Ubuntu release: lucid precise saucy trusty
|
||||
DEB_DIST ?= unstable
|
||||
|
||||
# ansible-test integration parameters (make integration)
|
||||
IMAGE ?= centos7
|
||||
TARGET ?=
|
||||
# pbuilder parameters
|
||||
PBUILDER_ARCH ?= amd64
|
||||
PBUILDER_CACHE_DIR = /var/cache/pbuilder
|
||||
PBUILDER_BIN ?= pbuilder
|
||||
PBUILDER_OPTS ?= --debootstrapopts --variant=buildd --architecture $(PBUILDER_ARCH) --debbuildopts -b
|
||||
|
||||
# RPM build parameters
|
||||
RPMSPECDIR= packaging/rpm
|
||||
RPMSPEC = $(RPMSPECDIR)/ansible.spec
|
||||
RPMDIST = $(shell rpm --eval '%{?dist}')
|
||||
RPMRELEASE = $(RELEASE)
|
||||
ifneq ($(OFFICIAL),yes)
|
||||
RPMRELEASE = 100.git$(DATE)$(GITINFO)
|
||||
endif
|
||||
ifeq ($(PUBLISH),nightly)
|
||||
# https://fedoraproject.org/wiki/Packaging:Versioning#Snapshots
|
||||
RPMRELEASE = $(RELEASE).$(DATE)git.$(GIT_HASH)
|
||||
endif
|
||||
RPMNVR = "$(NAME)-$(VERSION)-$(RPMRELEASE)$(RPMDIST)"
|
||||
|
||||
# MOCK build parameters
|
||||
MOCK_BIN ?= mock
|
||||
MOCK_CFG ?=
|
||||
|
||||
NOSETESTS ?= nosetests
|
||||
|
||||
NOSETESTS3 ?= nosetests-3.5
|
||||
|
||||
########################################################
|
||||
|
||||
.PHONY: all
|
||||
all: clean python
|
||||
|
||||
.PHONY: tests
|
||||
tests:
|
||||
$(ANSIBLE_TEST) units -v --python $(PYTHON_VERSION) $(TEST_FLAGS)
|
||||
PYTHONPATH=./lib $(NOSETESTS) -d -w test/units -v --with-coverage --cover-package=ansible --cover-branches --cover-erase
|
||||
|
||||
.PHONY: tests-py3
|
||||
tests-py3:
|
||||
$(ANSIBLE_TEST) units -v --python $(PYTHON3_VERSION) $(TEST_FLAGS)
|
||||
PYTHONPATH=./lib $(NOSETESTS3) -d -w test/units -v --with-coverage --cover-package=ansible --cover-branches --cover-erase
|
||||
|
||||
.PHONY: integration
|
||||
integration:
|
||||
$(ANSIBLE_TEST) integration -v --docker $(IMAGE) $(TARGET) $(TEST_FLAGS)
|
||||
test/utils/shippable/integration.sh
|
||||
|
||||
# Regenerate %.1.rst if %.1.rst.in has been modified more
|
||||
# recently than %.1.rst.
|
||||
%.1.rst: %.1.rst.in
|
||||
authors:
|
||||
sh hacking/authors.sh
|
||||
|
||||
# Regenerate %.1.asciidoc if %.1.asciidoc.in has been modified more
|
||||
# recently than %.1.asciidoc.
|
||||
%.1.asciidoc: %.1.asciidoc.in
|
||||
sed "s/%VERSION%/$(VERSION)/" $< > $@
|
||||
rm $<
|
||||
|
||||
# Regenerate %.1 if %.1.rst or release.py has been modified more
|
||||
# recently than %.1. (Implicitly runs the %.1.rst recipe)
|
||||
%.1: %.1.rst lib/ansible/release.py
|
||||
# Regenerate %.1 if %.1.asciidoc or VERSION has been modified more
|
||||
# recently than %.1. (Implicitly runs the %.1.asciidoc recipe)
|
||||
%.1: %.1.asciidoc VERSION
|
||||
$(ASCII2MAN)
|
||||
|
||||
.PHONY: clean
|
||||
loc:
|
||||
sloccount lib library bin
|
||||
|
||||
pep8:
|
||||
@echo "#############################################"
|
||||
@echo "# Running PEP8 Compliance Tests"
|
||||
@echo "#############################################"
|
||||
-pep8 -r --ignore=E501,E221,W291,W391,E302,E251,E203,W293,E231,E303,E201,E225,E261,E241 lib/ bin/
|
||||
# -pep8 -r --ignore=E501,E221,W291,W391,E302,E251,E203,W293,E231,E303,E201,E225,E261,E241 --filename "*" library/
|
||||
|
||||
pyflakes:
|
||||
pyflakes lib/ansible/*.py lib/ansible/*/*.py bin/*
|
||||
|
||||
clean:
|
||||
@echo "Cleaning up distutils stuff"
|
||||
rm -rf build
|
||||
rm -rf dist
|
||||
rm -rf lib/ansible*.egg-info/
|
||||
rm -rf lib/ansible.egg-info/
|
||||
@echo "Cleaning up byte compiled python stuff"
|
||||
find . -type f -regex ".*\.py[co]$$" -delete
|
||||
find . -type d -name "__pycache__" -delete
|
||||
@echo "Cleaning up editor backup files"
|
||||
find . -type f -not -path ./test/units/inventory_test_data/group_vars/noparse/all.yml~ \( -name "*~" -or -name "#*" \) -delete
|
||||
find . -type f \( -name "*.swp" \) -delete
|
||||
@echo "Cleaning up manpage stuff"
|
||||
find ./docs/man -type f -name "*.xml" -delete
|
||||
find ./docs/man -type f -name "*.rst" -delete
|
||||
find ./docs/man -type f -name "*.asciidoc" -delete
|
||||
find ./docs/man/man3 -type f -name "*.3" -delete
|
||||
rm -f ./docs/man/man1/*
|
||||
@echo "Cleaning up output from test runs"
|
||||
rm -rf test/test_data
|
||||
rm -rf logs/
|
||||
rm -rf .cache/
|
||||
rm -f test/units/.coverage*
|
||||
rm -rf test/results/*/*
|
||||
find test/ -type f -name '*.retry' -delete
|
||||
@echo "Cleaning up symlink cache"
|
||||
rm -f SYMLINK_CACHE.json
|
||||
@echo "Cleaning up RPM building stuff"
|
||||
rm -rf MANIFEST rpm-build
|
||||
@echo "Cleaning up Debian building stuff"
|
||||
rm -rf debian
|
||||
rm -rf deb-build
|
||||
rm -rf docs/json
|
||||
rm -rf docs/js
|
||||
@echo "Cleaning up docsite"
|
||||
$(MAKE) -C docs/docsite clean
|
||||
@echo "Cleaning up authors file"
|
||||
rm -f AUTHORS.TXT
|
||||
find . -type f -name '*.pyc' -delete
|
||||
|
||||
.PHONY: python
|
||||
python:
|
||||
$(PYTHON) setup.py build
|
||||
|
||||
.PHONY: install
|
||||
install:
|
||||
$(PYTHON) setup.py install
|
||||
|
||||
.PHONY: install_manpages
|
||||
install_manpages:
|
||||
gzip -9 $(wildcard ./docs/man/man1/ansible*.1)
|
||||
cp $(wildcard ./docs/man/man1/ansible*.1.gz) $(PREFIX)/man/man1/
|
||||
sdist: clean docs
|
||||
$(PYTHON) setup.py sdist
|
||||
|
||||
.PHONY: sdist_check
|
||||
sdist_check:
|
||||
$(PYTHON) -c 'import setuptools, sys; sys.exit(int(not (tuple(map(int, setuptools.__version__.split("."))) > (39, 2, 0))))'
|
||||
$(PYTHON) packaging/sdist/check-link-behavior.py
|
||||
|
||||
.PHONY: sdist
|
||||
sdist: sdist_check clean docs
|
||||
_ANSIBLE_SDIST_FROM_MAKEFILE=1 $(PYTHON) setup.py sdist --dist-dir=$(SDIST_DIR)
|
||||
|
||||
# Official releases generate the changelog as the last commit before the release.
|
||||
# Snapshots shouldn't result in new checkins so the changelog is generated as
|
||||
# part of creating the tarball.
|
||||
.PHONY: snapshot
|
||||
snapshot: sdist_check clean docs changelog
|
||||
_ANSIBLE_SDIST_FROM_MAKEFILE=1 $(PYTHON) setup.py sdist --dist-dir=$(SDIST_DIR)
|
||||
|
||||
.PHONY: sdist_upload
|
||||
sdist_upload: clean docs
|
||||
$(PYTHON) setup.py sdist upload 2>&1 |tee upload.log
|
||||
|
||||
.PHONY: changelog
|
||||
changelog:
|
||||
PYTHONPATH=./lib antsibull-changelog release -vv --use-ansible-doc && PYTHONPATH=./lib antsibull-changelog generate -vv --use-ansible-doc
|
||||
rpmcommon: $(MANPAGES) sdist
|
||||
@mkdir -p rpm-build
|
||||
@cp dist/*.gz rpm-build/
|
||||
@sed -e 's#^Version:.*#Version: $(VERSION)#' -e 's#^Release:.*#Release: $(RPMRELEASE)%{?dist}$(REPOTAG)#' $(RPMSPEC) >rpm-build/$(NAME).spec
|
||||
|
||||
.PHONY: generate_rst
|
||||
generate_rst: lib/ansible/cli/*.py
|
||||
mkdir -p ./docs/man/man1/ ; \
|
||||
$(PYTHON) $(GENERATE_CLI) --template-file=docs/templates/man.j2 --output-dir=docs/man/man1/ --output-format man lib/ansible/cli/*.py
|
||||
mock-srpm: /etc/mock/$(MOCK_CFG).cfg rpmcommon
|
||||
$(MOCK_BIN) -r $(MOCK_CFG) $(MOCK_ARGS) --resultdir rpm-build/ --buildsrpm --spec rpm-build/$(NAME).spec --sources rpm-build/
|
||||
@echo "#############################################"
|
||||
@echo "Ansible SRPM is built:"
|
||||
@echo rpm-build/*.src.rpm
|
||||
@echo "#############################################"
|
||||
|
||||
.PHONY: docs
|
||||
docs: generate_rst
|
||||
$(MAKE) $(MANPAGES)
|
||||
mock-rpm: /etc/mock/$(MOCK_CFG).cfg mock-srpm
|
||||
$(MOCK_BIN) -r $(MOCK_CFG) $(MOCK_ARGS) --resultdir rpm-build/ --rebuild rpm-build/$(NAME)-*.src.rpm
|
||||
@echo "#############################################"
|
||||
@echo "Ansible RPM is built:"
|
||||
@echo rpm-build/*.noarch.rpm
|
||||
@echo "#############################################"
|
||||
|
||||
.PHONY: version
|
||||
version:
|
||||
@echo $(VERSION)
|
||||
srpm: rpmcommon
|
||||
@rpmbuild --define "_topdir %(pwd)/rpm-build" \
|
||||
--define "_builddir %{_topdir}" \
|
||||
--define "_rpmdir %{_topdir}" \
|
||||
--define "_srcrpmdir %{_topdir}" \
|
||||
--define "_specdir $(RPMSPECDIR)" \
|
||||
--define "_sourcedir %{_topdir}" \
|
||||
-bs rpm-build/$(NAME).spec
|
||||
@rm -f rpm-build/$(NAME).spec
|
||||
@echo "#############################################"
|
||||
@echo "Ansible SRPM is built:"
|
||||
@echo " rpm-build/$(RPMNVR).src.rpm"
|
||||
@echo "#############################################"
|
||||
|
||||
rpm: rpmcommon
|
||||
@rpmbuild --define "_topdir %(pwd)/rpm-build" \
|
||||
--define "_builddir %{_topdir}" \
|
||||
--define "_rpmdir %{_topdir}" \
|
||||
--define "_srcrpmdir %{_topdir}" \
|
||||
--define "_specdir $(RPMSPECDIR)" \
|
||||
--define "_sourcedir %{_topdir}" \
|
||||
--define "_rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm" \
|
||||
--define "__python `which $(PYTHON)`" \
|
||||
-ba rpm-build/$(NAME).spec
|
||||
@rm -f rpm-build/$(NAME).spec
|
||||
@echo "#############################################"
|
||||
@echo "Ansible RPM is built:"
|
||||
@echo " rpm-build/$(RPMNVR).noarch.rpm"
|
||||
@echo "#############################################"
|
||||
|
||||
debian: sdist
|
||||
@for DIST in $(DEB_DIST) ; do \
|
||||
mkdir -p deb-build/$${DIST} ; \
|
||||
tar -C deb-build/$${DIST} -xvf dist/$(NAME)-$(VERSION).tar.gz ; \
|
||||
cp -a packaging/debian deb-build/$${DIST}/$(NAME)-$(VERSION)/ ; \
|
||||
sed -ie "s|%VERSION%|$(VERSION)|g;s|%RELEASE%|$(DEB_RELEASE)|;s|%DIST%|$${DIST}|g;s|%DATE%|$(DEB_DATE)|g" deb-build/$${DIST}/$(NAME)-$(VERSION)/debian/changelog ; \
|
||||
done
|
||||
|
||||
deb: deb-src
|
||||
@for DIST in $(DEB_DIST) ; do \
|
||||
PBUILDER_OPTS="$(PBUILDER_OPTS) --distribution $${DIST} --basetgz $(PBUILDER_CACHE_DIR)/$${DIST}-$(PBUILDER_ARCH)-base.tgz --buildresult $(CURDIR)/deb-build/$${DIST}" ; \
|
||||
$(PBUILDER_BIN) create $${PBUILDER_OPTS} --othermirror "deb http://archive.ubuntu.com/ubuntu $${DIST} universe" ; \
|
||||
$(PBUILDER_BIN) update $${PBUILDER_OPTS} ; \
|
||||
$(PBUILDER_BIN) build $${PBUILDER_OPTS} deb-build/$${DIST}/$(NAME)_$(VERSION)-$(DEB_RELEASE)~$${DIST}.dsc ; \
|
||||
done
|
||||
@echo "#############################################"
|
||||
@echo "Ansible DEB artifacts:"
|
||||
@for DIST in $(DEB_DIST) ; do \
|
||||
echo deb-build/$${DIST}/$(NAME)_$(VERSION)-$(DEB_RELEASE)~$${DIST}_amd64.changes ; \
|
||||
done
|
||||
@echo "#############################################"
|
||||
|
||||
# Build package outside of pbuilder, with locally installed dependencies.
|
||||
# Install BuildRequires as noted in packaging/debian/control.
|
||||
local_deb: debian
|
||||
@for DIST in $(DEB_DIST) ; do \
|
||||
(cd deb-build/$${DIST}/$(NAME)-$(VERSION)/ && $(DEBUILD) -b) ; \
|
||||
done
|
||||
@echo "#############################################"
|
||||
@echo "Ansible DEB artifacts:"
|
||||
@for DIST in $(DEB_DIST) ; do \
|
||||
echo deb-build/$${DIST}/$(NAME)_$(VERSION)-$(DEB_RELEASE)~$${DIST}_amd64.changes ; \
|
||||
done
|
||||
@echo "#############################################"
|
||||
|
||||
deb-src: debian
|
||||
@for DIST in $(DEB_DIST) ; do \
|
||||
(cd deb-build/$${DIST}/$(NAME)-$(VERSION)/ && $(DEBUILD) -S) ; \
|
||||
done
|
||||
@echo "#############################################"
|
||||
@echo "Ansible DEB artifacts:"
|
||||
@for DIST in $(DEB_DIST) ; do \
|
||||
echo deb-build/$${DIST}/$(NAME)_$(VERSION)-$(DEB_RELEASE)~$${DIST}_source.changes ; \
|
||||
done
|
||||
@echo "#############################################"
|
||||
|
||||
deb-upload: deb
|
||||
@for DIST in $(DEB_DIST) ; do \
|
||||
$(DPUT_BIN) $(DPUT_OPTS) $(DEB_PPA) deb-build/$${DIST}/$(NAME)_$(VERSION)-$(DEB_RELEASE)~$${DIST}_amd64.changes ; \
|
||||
done
|
||||
|
||||
deb-src-upload: deb-src
|
||||
@for DIST in $(DEB_DIST) ; do \
|
||||
$(DPUT_BIN) $(DPUT_OPTS) $(DEB_PPA) deb-build/$${DIST}/$(NAME)_$(VERSION)-$(DEB_RELEASE)~$${DIST}_source.changes ; \
|
||||
done
|
||||
|
||||
# for arch or gentoo, read instructions in the appropriate 'packaging' subdirectory directory
|
||||
|
||||
webdocs:
|
||||
(cd docsite/; make docs)
|
||||
|
||||
docs: $(MANPAGES)
|
||||
|
||||
alldocs: docs webdocs
|
||||
|
||||
57
README.md
Normal file
57
README.md
Normal file
@ -0,0 +1,57 @@
|
||||
[](https://pypi.python.org/pypi/ansible)
|
||||
[](https://app.shippable.com/projects/573f79d02a8192902e20e34b)
|
||||
|
||||
|
||||
Ansible
|
||||
=======
|
||||
|
||||
Ansible is a radically simple IT automation system. It handles configuration-management, application deployment, cloud provisioning, ad-hoc task-execution, and multinode orchestration - including trivializing things like zero downtime rolling updates with load balancers.
|
||||
|
||||
Read the documentation and more at https://ansible.com/
|
||||
|
||||
Many users run straight from the development branch (it's generally fine to do so), but you might also wish to consume a release.
|
||||
|
||||
You can find instructions [here](https://docs.ansible.com/intro_getting_started.html) for a variety of platforms. If you decide to go with the development branch, be sure to run `git submodule update --init --recursive` after doing a checkout.
|
||||
|
||||
If you want to download a tarball of a release, go to [releases.ansible.com](https://releases.ansible.com/ansible), though most users use `yum` (using the EPEL instructions linked above), `apt` (using the PPA instructions linked above), or `pip install ansible`.
|
||||
|
||||
Design Principles
|
||||
=================
|
||||
|
||||
* Have a dead simple setup process and a minimal learning curve
|
||||
* Manage machines very quickly and in parallel
|
||||
* Avoid custom-agents and additional open ports, be agentless by leveraging the existing SSH daemon
|
||||
* Describe infrastructure in a language that is both machine and human friendly
|
||||
* Focus on security and easy auditability/review/rewriting of content
|
||||
* Manage new remote machines instantly, without bootstrapping any software
|
||||
* Allow module development in any dynamic language, not just Python
|
||||
* Be usable as non-root
|
||||
* Be the easiest IT automation system to use, ever.
|
||||
|
||||
Get Involved
|
||||
============
|
||||
|
||||
* Read [Community Information](https://docs.ansible.com/community.html) for all kinds of ways to contribute to and interact with the project, including mailing list information and how to submit bug reports and code to Ansible.
|
||||
* All code submissions are done through pull requests. Take care to make sure no merge commits are in the submission, and use `git rebase` vs `git merge` for this reason. If submitting a large code change (other than modules), it's probably a good idea to join ansible-devel and talk about what you would like to do or add first and to avoid duplicate efforts. This not only helps everyone know what's going on, it also helps save time and effort if we decide some changes are needed.
|
||||
* Users list: [ansible-project](https://groups.google.com/group/ansible-project)
|
||||
* Development list: [ansible-devel](https://groups.google.com/group/ansible-devel)
|
||||
* Announcement list: [ansible-announce](https://groups.google.com/group/ansible-announce) - read only
|
||||
* irc.freenode.net: #ansible
|
||||
|
||||
Branch Info
|
||||
===========
|
||||
|
||||
* Releases are named after Led Zeppelin songs. (Releases prior to 2.0 were named after Van Halen songs.)
|
||||
* The devel branch corresponds to the release actively under development.
|
||||
* As of 1.8, modules are kept in different repos, you'll want to follow [core](https://github.com/ansible/ansible-modules-core) and [extras](https://github.com/ansible/ansible-modules-extras)
|
||||
* Various release-X.Y branches exist for previous releases.
|
||||
* We'd love to have your contributions, read [Community Information](https://docs.ansible.com/community.html) for notes on how to get started.
|
||||
|
||||
Authors
|
||||
=======
|
||||
|
||||
Ansible was created by [Michael DeHaan](https://github.com/mpdehaan) (michael.dehaan/gmail/com) and has contributions from over 1000 users (and growing). Thanks everyone!
|
||||
|
||||
Ansible is sponsored by [Ansible, Inc](https://ansible.com)
|
||||
|
||||
|
||||
115
README.rst
115
README.rst
@ -1,115 +0,0 @@
|
||||
|PyPI version| |Docs badge| |Chat badge| |Build Status| |Code Of Conduct| |Mailing Lists| |License| |CII Best Practices|
|
||||
|
||||
*******
|
||||
Ansible
|
||||
*******
|
||||
|
||||
Ansible is a radically simple IT automation system. It handles
|
||||
configuration management, application deployment, cloud provisioning,
|
||||
ad-hoc task execution, network automation, and multi-node orchestration. Ansible makes complex
|
||||
changes like zero-downtime rolling updates with load balancers easy. More information on the Ansible `website <https://ansible.com/>`_.
|
||||
|
||||
Design Principles
|
||||
=================
|
||||
|
||||
* Have an extremely simple setup process with a minimal learning curve.
|
||||
* Manage machines quickly and in parallel.
|
||||
* Avoid custom-agents and additional open ports, be agentless by
|
||||
leveraging the existing SSH daemon.
|
||||
* Describe infrastructure in a language that is both machine and human
|
||||
friendly.
|
||||
* Focus on security and easy auditability/review/rewriting of content.
|
||||
* Manage new remote machines instantly, without bootstrapping any
|
||||
software.
|
||||
* Allow module development in any dynamic language, not just Python.
|
||||
* Be usable as non-root.
|
||||
* Be the easiest IT automation system to use, ever.
|
||||
|
||||
Use Ansible
|
||||
===========
|
||||
|
||||
You can install a released version of Ansible with ``pip`` or a package manager. See our
|
||||
`installation guide <https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html>`_ for details on installing Ansible
|
||||
on a variety of platforms.
|
||||
|
||||
Power users and developers can run the ``devel`` branch, which has the latest
|
||||
features and fixes, directly. Although it is reasonably stable, you are more likely to encounter
|
||||
breaking changes when running the ``devel`` branch. We recommend getting involved
|
||||
in the Ansible community if you want to run the ``devel`` branch.
|
||||
|
||||
Get Involved
|
||||
============
|
||||
|
||||
* Read `Community
|
||||
Information <https://docs.ansible.com/ansible/latest/community>`_ for all
|
||||
kinds of ways to contribute to and interact with the project,
|
||||
including mailing list information and how to submit bug reports and
|
||||
code to Ansible.
|
||||
* Join a `Working Group
|
||||
<https://github.com/ansible/community/wiki>`_, an organized community devoted to a specific technology domain or platform.
|
||||
* Submit a proposed code update through a pull request to the ``devel`` branch.
|
||||
* Talk to us before making larger changes
|
||||
to avoid duplicate efforts. This not only helps everyone
|
||||
know what is going on, but it also helps save time and effort if we decide
|
||||
some changes are needed.
|
||||
* For a list of email lists, IRC channels and Working Groups, see the
|
||||
`Communication page <https://docs.ansible.com/ansible/latest/community/communication.html>`_
|
||||
|
||||
Coding Guidelines
|
||||
=================
|
||||
|
||||
We document our Coding Guidelines in the `Developer Guide <https://docs.ansible.com/ansible/devel/dev_guide/>`_. We particularly suggest you review:
|
||||
|
||||
* `Contributing your module to Ansible <https://docs.ansible.com/ansible/devel/dev_guide/developing_modules_checklist.html>`_
|
||||
* `Conventions, tips, and pitfalls <https://docs.ansible.com/ansible/devel/dev_guide/developing_modules_best_practices.html>`_
|
||||
|
||||
Branch Info
|
||||
===========
|
||||
|
||||
* The ``devel`` branch corresponds to the release actively under development.
|
||||
* The ``stable-2.X`` branches correspond to stable releases.
|
||||
* Create a branch based on ``devel`` and set up a `dev environment <https://docs.ansible.com/ansible/latest/dev_guide/developing_modules_general.html#common-environment-setup>`_ if you want to open a PR.
|
||||
* See the `Ansible release and maintenance <https://docs.ansible.com/ansible/devel/reference_appendices/release_and_maintenance.html>`_ page for information about active branches.
|
||||
|
||||
Roadmap
|
||||
=======
|
||||
|
||||
Based on team and community feedback, an initial roadmap will be published for a major or minor version (ex: 2.7, 2.8).
|
||||
The `Ansible Roadmap page <https://docs.ansible.com/ansible/devel/roadmap/>`_ details what is planned and how to influence the roadmap.
|
||||
|
||||
Authors
|
||||
=======
|
||||
|
||||
Ansible was created by `Michael DeHaan <https://github.com/mpdehaan>`_
|
||||
and has contributions from over 5000 users (and growing). Thanks everyone!
|
||||
|
||||
`Ansible <https://www.ansible.com>`_ is sponsored by `Red Hat, Inc.
|
||||
<https://www.redhat.com>`_
|
||||
|
||||
License
|
||||
=======
|
||||
|
||||
GNU General Public License v3.0 or later
|
||||
|
||||
See `COPYING <COPYING>`_ to see the full text.
|
||||
|
||||
.. |PyPI version| image:: https://img.shields.io/pypi/v/ansible-core.svg
|
||||
:target: https://pypi.org/project/ansible-core
|
||||
.. |Docs badge| image:: https://img.shields.io/badge/docs-latest-brightgreen.svg
|
||||
:target: https://docs.ansible.com/ansible/latest/
|
||||
.. |Build Status| image:: https://dev.azure.com/ansible/ansible/_apis/build/status/CI?branchName=devel
|
||||
:target: https://dev.azure.com/ansible/ansible/_build/latest?definitionId=20&branchName=devel
|
||||
.. |Chat badge| image:: https://img.shields.io/badge/chat-IRC-brightgreen.svg
|
||||
:target: https://docs.ansible.com/ansible/latest/community/communication.html
|
||||
.. |Code Of Conduct| image:: https://img.shields.io/badge/code%20of%20conduct-Ansible-silver.svg
|
||||
:target: https://docs.ansible.com/ansible/latest/community/code_of_conduct.html
|
||||
:alt: Ansible Code of Conduct
|
||||
.. |Mailing Lists| image:: https://img.shields.io/badge/mailing%20lists-Ansible-orange.svg
|
||||
:target: https://docs.ansible.com/ansible/latest/community/communication.html#mailing-list-information
|
||||
:alt: Ansible mailing lists
|
||||
.. |License| image:: https://img.shields.io/badge/license-GPL%20v3.0-brightgreen.svg
|
||||
:target: COPYING
|
||||
:alt: Repository License
|
||||
.. |CII Best Practices| image:: https://bestpractices.coreinfrastructure.org/projects/2372/badge
|
||||
:target: https://bestpractices.coreinfrastructure.org/projects/2372
|
||||
:alt: Ansible CII Best Practices certification
|
||||
81
RELEASES.txt
Normal file
81
RELEASES.txt
Normal file
@ -0,0 +1,81 @@
|
||||
Ansible Releases at a Glance
|
||||
============================
|
||||
|
||||
VERSION RELEASE CODE NAME
|
||||
++++++++++++++++++++++++++++++
|
||||
|
||||
2.4.0 TBD "Dancing Days"
|
||||
2.3.0 04-12-2017 "Ramble On"
|
||||
2.2.3 05-09-2017 "The Battle of Evermore"
|
||||
2.2.2 03-27-2017 "The Battle of Evermore"
|
||||
2.2.1 01-16-2017 "The Battle of Evermore"
|
||||
2.2.0 11-01-2016 "The Battle of Evermore"
|
||||
2.1.5 03-27-2017 "The Song Remains the Same"
|
||||
2.1.4 01-16-2017 "The Song Remains the Same"
|
||||
2.1.3 11-04-2016 "The Song Remains the Same"
|
||||
2.1.2 09-29-2016 "The Song Remains the Same"
|
||||
2.1.1 07-28-2016 "The Song Remains the Same"
|
||||
2.1.0 05-25-2016 "The Song Remains the Same"
|
||||
2.0.2 04-19-2016 "Over the Hills and Far Away"
|
||||
2.0.1 02-24-2016 "Over the Hills and Far Away"
|
||||
2.0.0 01-12-2016 "Over the Hills and Far Away"
|
||||
1.9.6 04-15-2016 "Dancing In the Streets"
|
||||
1.9.5 03-21-2016 "Dancing In the Streets"
|
||||
1.9.4 10-09-2015 "Dancing In the Streets"
|
||||
1.9.3 09-03-2015 "Dancing In the Streets"
|
||||
1.9.2 06-24-2015 "Dancing In the Streets"
|
||||
1.9.1 04-27-2015 "Dancing In the Streets"
|
||||
1.9.0 03-25-2015 "Dancing In the Streets"
|
||||
1.8.4 02-19-2015 "You Really Got Me"
|
||||
1.8.3 02-17-2015 "You Really Got Me"
|
||||
1.8.2 12-04-2014 "You Really Got Me"
|
||||
1.8.1 11-26-2014 "You Really Got Me"
|
||||
1.8.0 11-25-2014 "You Really Got Me"
|
||||
1.7.2 09-24-2014 "Summer Nights"
|
||||
1.7.1 08-14-2014 "Summer Nights"
|
||||
1.7.0 08-06-2014 "Summer Nights"
|
||||
1.6.10 07-25-2014 "The Cradle Will Rock"
|
||||
1.6.9 07-24-2014 "The Cradle Will Rock"
|
||||
1.6.8 07-22-2014 "The Cradle Will Rock"
|
||||
1.6.7 07-21-2014 "The Cradle Will Rock"
|
||||
1.6.6 07-01-2014 "The Cradle Will Rock"
|
||||
1.6.5 06-25-2014 "The Cradle Will Rock"
|
||||
1.6.4 06-25-2014 "The Cradle Will Rock"
|
||||
1.6.3 06-09-2014 "The Cradle Will Rock"
|
||||
1.6.2 05-23-2014 "The Cradle Will Rock"
|
||||
1.6.1 05-07-2014 "The Cradle Will Rock"
|
||||
1.6.0 05-05-2014 "The Cradle Will Rock"
|
||||
1.5.5 04-18-2014 "Love Walks In"
|
||||
1.5.4 04-01-2014 "Love Walks In"
|
||||
1.5.3 03-13-2014 "Love Walks In"
|
||||
1.5.2 03-11-2014 "Love Walks In"
|
||||
1.5.1 03-10-2014 "Love Walks In"
|
||||
1.5.0 02-28-2014 "Love Walks In"
|
||||
1.4.5 02-12-2014 "Could This Be Magic?"
|
||||
1.4.4 01-06-2014 "Could This Be Magic?"
|
||||
1.4.3 12-20-2013 "Could This Be Magic?"
|
||||
1.4.2 12-18-2013 "Could This Be Magic?"
|
||||
1.4.1 11-27-2013 "Could This Be Magic?"
|
||||
1.4.0 11-21-2013 "Could This Be Magic?"
|
||||
1.3.4 10-29-2013 "Top of the World"
|
||||
1.3.3 10-09-2013 "Top of the World"
|
||||
1.3.2 09-19-2013 "Top of the World"
|
||||
1.3.1 09-16-2013 "Top of the World"
|
||||
1.3.0 09-13-2013 "Top of the World"
|
||||
1.2.3 08-21-2013 "Right Now"
|
||||
1.2.2 07-05-2013 "Right Now"
|
||||
1.2.1 07-04-2013 "Right Now"
|
||||
1.2.0 06-10-2013 "Right Now"
|
||||
1.1.0 04-02-2013 "Mean Street"
|
||||
1.0.0 02-01-2013 "Eruption"
|
||||
0.9.0 11-30-2012 "Dreams"
|
||||
0.8.0 10-19-2012 "Cathedral"
|
||||
0.7.0 09-06-2012 "Panama"
|
||||
0.6.0 08-06-2012 "Cabo"
|
||||
0.5.0 07-04-2012 "Amsterdam"
|
||||
0.4.0 05-23-2012 "Unchained"
|
||||
0.3.0 04-23-2012 "Baluchitherium"
|
||||
0.2.0 ? "Untitled"
|
||||
0.1.0 ? "Untitled"
|
||||
0.0.2 ? "Untitled"
|
||||
0.0.1 ? "Untitled"
|
||||
25
ROADMAP.rst
Normal file
25
ROADMAP.rst
Normal file
@ -0,0 +1,25 @@
|
||||
*******************************
|
||||
Roadmap For Ansible by Red Hat
|
||||
*******************************
|
||||
This document is now the location for published Ansible Core roadmaps.
|
||||
|
||||
The roadmap will be updated by version. Based on team and community feedback, an initial roadmap will be published for a major or minor version (2.0, 2.1). Subminor versions will generally not have roadmaps published.
|
||||
|
||||
2.1 was the first time Ansible has published this and asked for feedback in this manner. So feedback on the roadmap and the new process is quite welcome. The team is aiming for further transparency and better inclusion of both community desires and submissions.
|
||||
|
||||
These roadmaps are the team's *best guess* roadmaps based on the Ansible team's experience and are also based on requests and feedback from the community. There are things that may not make it on due to time constraints, lack of community maintainers, etc. And there may be things that got missed, so each roadmap is published both as an idea of what is upcoming in Ansible, and as a medium for seeking further feedback from the community. Here are the good places for you to submit feedback:
|
||||
|
||||
- Ansible's google-group: ansible-devel
|
||||
- Ansible Fest conferences.
|
||||
- IRC freenode channel: #ansible-devel (this one may have things lost in lots of conversation, so a caution).
|
||||
|
||||
=======================================
|
||||
Current 2.2 Roadmap is open for comment
|
||||
=======================================
|
||||
We are currently trying to finalize the 2.2 Roadmap, targeted for September delivery. We are seeking community feedback for 2.2. That document is here:
|
||||
|
||||
`2.2 Roadmap Document <docsite/rst/roadmap/ROADMAP_2_2.rst>`_
|
||||
|
||||
|
||||
**Old Roadmaps are found here:**
|
||||
- `2.1 Roadmap Document <docsite/rst/roadmap/ROADMAP_2_1.rst>`_
|
||||
2721
ansible-core-sitemap.xml
Normal file
2721
ansible-core-sitemap.xml
Normal file
File diff suppressed because it is too large
Load Diff
@ -1 +0,0 @@
|
||||
../lib/ansible/cli/adhoc.py
|
||||
139
bin/ansible
Executable file
139
bin/ansible
Executable file
@ -0,0 +1,139 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
# (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>
|
||||
#
|
||||
# This file is part of Ansible
|
||||
#
|
||||
# Ansible is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# Ansible is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
########################################################
|
||||
from __future__ import (absolute_import, division, print_function)
|
||||
__metaclass__ = type
|
||||
|
||||
__requires__ = ['ansible']
|
||||
try:
|
||||
import pkg_resources
|
||||
except Exception:
|
||||
# Use pkg_resources to find the correct versions of libraries and set
|
||||
# sys.path appropriately when there are multiversion installs. But we
|
||||
# have code that better expresses the errors in the places where the code
|
||||
# is actually used (the deps are optional for many code paths) so we don't
|
||||
# want to fail here.
|
||||
pass
|
||||
|
||||
import os
|
||||
import shutil
|
||||
import sys
|
||||
import traceback
|
||||
|
||||
# for debug
|
||||
from multiprocessing import Lock
|
||||
|
||||
import ansible.constants as C
|
||||
from ansible.errors import AnsibleError, AnsibleOptionsError, AnsibleParserError
|
||||
from ansible.utils.display import Display
|
||||
from ansible.module_utils._text import to_text
|
||||
|
||||
|
||||
########################################
|
||||
### OUTPUT OF LAST RESORT ###
|
||||
class LastResort(object):
|
||||
def display(self, msg):
|
||||
print(msg, file=sys.stderr)
|
||||
|
||||
def error(self, msg, wrap_text=None):
|
||||
print(msg, file=sys.stderr)
|
||||
|
||||
|
||||
########################################
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
display = LastResort()
|
||||
cli = None
|
||||
me = os.path.basename(sys.argv[0])
|
||||
|
||||
try:
|
||||
display = Display()
|
||||
display.debug("starting run")
|
||||
|
||||
sub = None
|
||||
try:
|
||||
if me.find('-') != -1:
|
||||
target = me.split('-')
|
||||
if len(target) > 1:
|
||||
sub = target[1]
|
||||
myclass = "%sCLI" % sub.capitalize()
|
||||
mycli = getattr(__import__("ansible.cli.%s" % sub, fromlist=[myclass]), myclass)
|
||||
elif me == 'ansible':
|
||||
from ansible.cli.adhoc import AdHocCLI as mycli
|
||||
else:
|
||||
raise AnsibleError("Unknown Ansible alias: %s" % me)
|
||||
except ImportError as e:
|
||||
# ImportError members have changed in py3
|
||||
if 'msg' in dir(e):
|
||||
msg = e.msg
|
||||
else:
|
||||
msg = e.message
|
||||
if msg.endswith(' %s' % sub):
|
||||
raise AnsibleError("Ansible sub-program not implemented: %s" % me)
|
||||
else:
|
||||
raise
|
||||
|
||||
try:
|
||||
args = [to_text(a, errors='surrogate_or_strict') for a in sys.argv]
|
||||
except UnicodeError:
|
||||
display.error('Command line args are not in utf-8, unable to continue. Ansible currently only understands utf-8')
|
||||
display.display(u"The full traceback was:\n\n%s" % to_text(traceback.format_exc()))
|
||||
exit_code = 6
|
||||
else:
|
||||
cli = mycli(args)
|
||||
cli.parse()
|
||||
exit_code = cli.run()
|
||||
|
||||
except AnsibleOptionsError as e:
|
||||
cli.parser.print_help()
|
||||
display.error(to_text(e), wrap_text=False)
|
||||
exit_code = 5
|
||||
except AnsibleParserError as e:
|
||||
display.error(to_text(e), wrap_text=False)
|
||||
exit_code = 4
|
||||
# TQM takes care of these, but leaving comment to reserve the exit codes
|
||||
# except AnsibleHostUnreachable as e:
|
||||
# display.error(str(e))
|
||||
# exit_code = 3
|
||||
# except AnsibleHostFailed as e:
|
||||
# display.error(str(e))
|
||||
# exit_code = 2
|
||||
except AnsibleError as e:
|
||||
display.error(to_text(e), wrap_text=False)
|
||||
exit_code = 1
|
||||
except KeyboardInterrupt:
|
||||
display.error("User interrupted execution")
|
||||
exit_code = 99
|
||||
except Exception as e:
|
||||
have_cli_options = cli is not None and cli.options is not None
|
||||
display.error("Unexpected Exception: %s" % to_text(e), wrap_text=False)
|
||||
if not have_cli_options or have_cli_options and cli.options.verbosity > 2:
|
||||
log_only = False
|
||||
else:
|
||||
display.display("to see the full traceback, use -vvv")
|
||||
log_only = True
|
||||
display.display(u"the full traceback was:\n\n%s" % to_text(traceback.format_exc()), log_only=log_only)
|
||||
exit_code = 250
|
||||
finally:
|
||||
# Remove ansible tempdir
|
||||
shutil.rmtree(C.DEFAULT_LOCAL_TMP, True)
|
||||
|
||||
sys.exit(exit_code)
|
||||
@ -1 +0,0 @@
|
||||
../lib/ansible/cli/config.py
|
||||
@ -1 +0,0 @@
|
||||
../lib/ansible/cli/scripts/ansible_connection_cli_stub.py
|
||||
@ -1 +1 @@
|
||||
../lib/ansible/cli/console.py
|
||||
ansible
|
||||
@ -1 +1 @@
|
||||
../lib/ansible/cli/doc.py
|
||||
ansible
|
||||
@ -1 +1 @@
|
||||
../lib/ansible/cli/galaxy.py
|
||||
ansible
|
||||
@ -1 +0,0 @@
|
||||
../lib/ansible/cli/inventory.py
|
||||
@ -1 +1 @@
|
||||
../lib/ansible/cli/playbook.py
|
||||
ansible
|
||||
@ -1 +1 @@
|
||||
../lib/ansible/cli/pull.py
|
||||
ansible
|
||||
@ -1 +0,0 @@
|
||||
../test/lib/ansible_test/_util/target/cli/ansible_test_cli_stub.py
|
||||
@ -1 +1 @@
|
||||
../lib/ansible/cli/vault.py
|
||||
ansible
|
||||
@ -1,365 +0,0 @@
|
||||
=================================================
|
||||
ansible-core 2.14 "C'mon Everybody" Release Notes
|
||||
=================================================
|
||||
|
||||
.. contents:: Topics
|
||||
|
||||
|
||||
v2.14.0b1
|
||||
=========
|
||||
|
||||
Release Summary
|
||||
---------------
|
||||
|
||||
| Release Date: 2022-09-26
|
||||
| `Porting Guide <https://docs.ansible.com/ansible/devel/porting_guides.html>`__
|
||||
|
||||
|
||||
Major Changes
|
||||
-------------
|
||||
|
||||
- Move handler processing into new ``PlayIterator`` phase to use the configured strategy (https://github.com/ansible/ansible/issues/65067)
|
||||
- ansible - At startup the filesystem encoding and locale are checked to verify they are UTF-8. If not, the process exits with an error reporting the errant encoding.
|
||||
- ansible - Increase minimum Python requirement to Python 3.9 for CLI utilities and controller code
|
||||
- ansible-test - At startup the filesystem encoding is checked to verify it is UTF-8. If not, the process exits with an error reporting the errant encoding.
|
||||
- ansible-test - At startup the locale is configured as ``en_US.UTF-8``, with a fallback to ``C.UTF-8``. If neither encoding is available the process exits with an error. If the fallback is used, a warning is displayed. In previous versions the ``en_US.UTF-8`` locale was always requested. However, no startup checking was performed to verify the locale was successfully configured.
|
||||
|
||||
Minor Changes
|
||||
-------------
|
||||
|
||||
- Add a new "INVENTORY_UNPARSED_WARNING" flag add to hide the "No inventory was parsed, only implicit localhost is available" warning
|
||||
- Add an 'action_plugin' field for modules in runtime.yml plugin_routing.
|
||||
|
||||
This fixes module_defaults by supporting modules-as-redirected-actions
|
||||
without redirecting module_defaults entries to the common action.
|
||||
|
||||
.. code: yaml
|
||||
|
||||
plugin_routing:
|
||||
action:
|
||||
facts:
|
||||
redirect: ns.coll.eos
|
||||
command:
|
||||
redirect: ns.coll.eos
|
||||
modules:
|
||||
facts:
|
||||
redirect: ns.coll.eos_facts
|
||||
command:
|
||||
redirect: ns.coll.eos_command
|
||||
|
||||
With the runtime.yml above for ns.coll, a task such as
|
||||
|
||||
.. code: yaml
|
||||
|
||||
- hosts: all
|
||||
module_defaults:
|
||||
ns.coll.eos_facts: {'valid_for_eos_facts': 'value'}
|
||||
ns.coll.eos_command: {'not_valid_for_eos_facts': 'value'}
|
||||
tasks:
|
||||
- ns.coll.facts:
|
||||
|
||||
will end up with defaults for eos_facts and eos_command
|
||||
since both modules redirect to the same action.
|
||||
|
||||
To select an action plugin for a module without merging
|
||||
module_defaults, define an action_plugin field for the resolved
|
||||
module in the runtime.yml.
|
||||
|
||||
.. code: yaml
|
||||
|
||||
plugin_routing:
|
||||
modules:
|
||||
facts:
|
||||
redirect: ns.coll.eos_facts
|
||||
action_plugin: ns.coll.eos
|
||||
command:
|
||||
redirect: ns.coll.eos_command
|
||||
action_plugin: ns.coll.eos
|
||||
|
||||
The action_plugin field can be a redirected action plugin, as
|
||||
it is resolved normally.
|
||||
|
||||
Using the modified runtime.yml, the example task will only use
|
||||
the ns.coll.eos_facts defaults.
|
||||
- Add support for parsing ``-a`` module options as JSON and not just key=value arguments - https://github.com/ansible/ansible/issues/78112
|
||||
- Added Kylin Linux Advanced Server OS in RedHat OS Family.
|
||||
- Allow ``when`` conditionals to be used on ``flush_handlers`` (https://github.com/ansible/ansible/issues/77616)
|
||||
- Allow meta tasks to be used as handlers.
|
||||
- Display - The display class will now proxy calls to Display.display via the queue from forks/workers to be handled by the parent process for actual display. This reduces some reliance on the fork start method and improves reliability of displaying messages.
|
||||
- Jinja version test - Add pep440 version_type for version test. (https://github.com/ansible/ansible/issues/78288)
|
||||
- Loops - Add new ``loop_control.extended_allitems`` to allow users to disable tracking all loop items for each loop (https://github.com/ansible/ansible/issues/75216)
|
||||
- NetBSD - Add uptime_seconds fact
|
||||
- Provide a `utc` option for strftime to show time in UTC rather than local time
|
||||
- Raise a proper error when ``include_role`` or ``import_role`` is used as a handler.
|
||||
- Remove the ``AnsibleContext.resolve`` method as its override is not necessary. Furthermore the ability to override the ``resolve`` method was deprecated in Jinja 3.0.0 and removed in Jinja 3.1.0.
|
||||
- Utilize @classmethod and @property together to form classproperty (Python 3.9) to access field attributes of a class
|
||||
- ``LoopControl`` is now templated through standard ``post_validate`` method (https://github.com/ansible/ansible/pull/75715)
|
||||
- ``ansible-galaxy collection install`` - add an ``--offline`` option to prevent querying distribution servers (https://github.com/ansible/ansible/issues/77443).
|
||||
- ansible - Add support for Python 3.11 to Python interpreter discovery.
|
||||
- ansible - At startup the stdin/stdout/stderr file handles are checked to verify they are using blocking IO. If not, the process exits with an error reporting which file handle(s) are using non-blocking IO.
|
||||
- ansible-config adds JSON and YAML output formats for list and dump actions.
|
||||
- ansible-connection now supports verbosity directly on cli
|
||||
- ansible-console added 'collections' command to match playbook keyword.
|
||||
- ansible-doc - remove some of the manual formatting, and use YAML more uniformly. This in particular means that ``true`` and ``false`` are used for boolean values, instead of ``True`` and ``False`` (https://github.com/ansible/ansible/pull/78668).
|
||||
- ansible-galaxy - Support resolvelib versions 0.6.x, 0.7.x, and 0.8.x. The full range of supported versions is now >= 0.5.3, < 0.9.0.
|
||||
- ansible-galaxy now supports a user defined timeout, instead of existing hardcoded 60s (now the default).
|
||||
- ansible-test - Add FreeBSD 13.1 remote support.
|
||||
- ansible-test - Add RHEL 9.0 remote support.
|
||||
- ansible-test - Add support for Python 3.11.
|
||||
- ansible-test - Add support for RHEL 8.6 remotes.
|
||||
- ansible-test - Add support for Ubuntu VMs using the ``--remote`` option.
|
||||
- ansible-test - Add support for exporting inventory with ``ansible-test shell --export {path}``.
|
||||
- ansible-test - Add support for multi-arch remotes.
|
||||
- ansible-test - Add support for provisioning Alpine 3.16 remote instances.
|
||||
- ansible-test - Add support for provisioning Fedora 36 remote instances.
|
||||
- ansible-test - Add support for provisioning Ubuntu 20.04 remote instances.
|
||||
- ansible-test - Add support for provisioning remotes which require ``doas`` for become.
|
||||
- ansible-test - Add support for running non-interactive commands with ``ansible-test shell``.
|
||||
- ansible-test - Alpine remotes now use ``sudo`` for tests, using ``doas`` only for bootstrapping.
|
||||
- ansible-test - An improved error message is shown when the download of a pip bootstrap script fails. The download now uses ``urllib2`` instead of ``urllib`` on Python 2.
|
||||
- ansible-test - Avoid using the ``mock_use_standalone_module`` setting for unit tests running on Python 3.8 or later.
|
||||
- ansible-test - Become support for remote instance provisioning is no longer tied to a fixed list of platforms.
|
||||
- ansible-test - Blocking mode is now enforced for stdin, stdout and stderr. If any of these are non-blocking then ansible-test will exit during startup with an error.
|
||||
- ansible-test - Distribution specific test containers are now multi-arch, supporting both x86_64 and aarch64.
|
||||
- ansible-test - Distribution specific test containers no longer contain a ``/etc/ansible/hosts`` file.
|
||||
- ansible-test - Enable loading of ``coverage`` data files created by older supported ansible-test releases.
|
||||
- ansible-test - Fedora 36 has been added as a test container.
|
||||
- ansible-test - FreeBSD remotes now use ``sudo`` for tests, using ``su`` only for bootstrapping.
|
||||
- ansible-test - Improve consistency of output messages by using stdout or stderr for most output, but not both.
|
||||
- ansible-test - Remote Alpine instances now have the ``acl`` package installed.
|
||||
- ansible-test - Remote Fedora instances now have the ``acl`` package installed.
|
||||
- ansible-test - Remote FreeBSD instances now have ACLs enabled on the root filesystem.
|
||||
- ansible-test - Remote Ubuntu instances now have the ``acl`` package installed.
|
||||
- ansible-test - Remove Fedora 34 test container.
|
||||
- ansible-test - Remove Fedora 35 test container.
|
||||
- ansible-test - Remove FreeBSD 13.0 remote support.
|
||||
- ansible-test - Remove RHEL 8.5 remote support.
|
||||
- ansible-test - Remove Ubuntu 18.04 test container.
|
||||
- ansible-test - Remove support for Python 2.7 on provisioned FreeBSD instances.
|
||||
- ansible-test - Remove support for Python 3.8 on the controller.
|
||||
- ansible-test - Remove the ``opensuse15py2`` container.
|
||||
- ansible-test - Support multiple pinned versions of the ``coverage`` module. The version used now depends on the Python version in use.
|
||||
- ansible-test - Test containers have been updated to remove the ``VOLUME`` instruction.
|
||||
- ansible-test - The Alpine 3 test container has been updated to Alpine 3.16.0.
|
||||
- ansible-test - The ``http-test-container`` container is now multi-arch, supporting both x86_64 and aarch64.
|
||||
- ansible-test - The ``pypi-test-container`` container is now multi-arch, supporting both x86_64 and aarch64.
|
||||
- ansible-test - The ``shell`` command can be used outside a collection if no controller delegation is required.
|
||||
- ansible-test - The openSUSE test container has been updated to openSUSE Leap 15.4.
|
||||
- ansible-test - Ubuntu 22.04 has been added as a test container.
|
||||
- ansible-test - Update pinned sanity test requirements for all tests.
|
||||
- ansible-test - Update the ``base`` container to 3.4.0.
|
||||
- ansible-test - Update the ``default`` containers to 6.6.0.
|
||||
- apt_repository remove dependency on apt-key and use gpg + /usr/share/keyrings directly instead
|
||||
- blockinfile - The presence of the multiline flag (?m) in the regular expression for insertafter opr insertbefore controls whether the match is done line by line or with multiple lines (https://github.com/ansible/ansible/pull/75090).
|
||||
- calls to listify_lookup_plugin_terms in core do not pass in loader/dataloader anymore.
|
||||
- collections - ``ansible-galaxy collection build`` can now utilize ``MANIFEST.in`` style directives from ``galaxy.yml`` instead of ``build_ignore`` effectively inverting the logic from include by default, to exclude by default. (https://github.com/ansible/ansible/pull/78422)
|
||||
- config manager, move templating into main query function in config instead of constants
|
||||
- config manager, remove updates to configdata as it is mostly unused
|
||||
- configuration entry INTERPRETER_PYTHON_DISTRO_MAP is now 'private' and won't show up in normal configuration queries and docs, since it is not 'settable' this avoids user confusion.
|
||||
- distribution - add distribution_minor_version for Debian Distro (https://github.com/ansible/ansible/issues/74481).
|
||||
- documentation construction now gives more information on error.
|
||||
- facts - add OSMC to Debian os_family mapping
|
||||
- get_url - permit to pass to parameter ``checksum`` an URL pointing to a file containing only a checksum (https://github.com/ansible/ansible/issues/54390).
|
||||
- new tests url, uri and urn will verify string as such, but they don't check existance of the resource
|
||||
- plugin loader - add ansible_name and ansible_aliases attributes to plugin objects/classes.
|
||||
- systemd is now systemd_service to better reflect the scope of the module, systemd is kept as an alias for backwards compatibility.
|
||||
- templating - removed internal template cache
|
||||
- uri - cleanup write_file method, remove overkill safety checks and report any exception, change shutilcopyfile to use module.atomic_move
|
||||
- urls - Add support to specify SSL/TLS ciphers to use during a request (https://github.com/ansible/ansible/issues/78633)
|
||||
- validate-modules - Allow ``type: raw`` on a module return type definition for values that have a dynamic type
|
||||
- version output now includes the path to the python executable that Ansible is running under
|
||||
- yum_repository - do not give the ``async`` parameter a default value anymore, since this option is deprecated in RHEL 8. This means that ``async = 1`` won't be added to repository files if omitted, but it can still be set explicitly if needed.
|
||||
|
||||
Breaking Changes / Porting Guide
|
||||
--------------------------------
|
||||
|
||||
- Allow for lazy evaluation of Jinja2 expressions (https://github.com/ansible/ansible/issues/56017)
|
||||
- The default ansible-galaxy role skeletons no longer contain .travis.yml files. You can configure ansible-galaxy to use a custom role skeleton that contains a .travis.yml file to continue using Galaxy's integration with Travis CI.
|
||||
- ansible - At startup the filesystem encoding and locale are checked to verify they are UTF-8. If not, the process exits with an error reporting the errant encoding.
|
||||
- ansible - Increase minimum Python requirement to Python 3.9 for CLI utilities and controller code
|
||||
- ansible-test - At startup the filesystem encoding is checked to verify it is UTF-8. If not, the process exits with an error reporting the errant encoding.
|
||||
- ansible-test - At startup the locale is configured as ``en_US.UTF-8``, with a fallback to ``C.UTF-8``. If neither encoding is available the process exits with an error. If the fallback is used, a warning is displayed. In previous versions the ``en_US.UTF-8`` locale was always requested. However, no startup checking was performed to verify the locale was successfully configured.
|
||||
- strategy plugins - Make ``ignore_unreachable`` to increase ``ignored`` and ``ok`` and counter, not ``skipped`` and ``unreachable``. (https://github.com/ansible/ansible/issues/77690)
|
||||
|
||||
Deprecated Features
|
||||
-------------------
|
||||
|
||||
- Deprecate ability of lookup plugins to return arbitrary data. Lookup plugins must return lists, failing to do so will be an error in 2.18. (https://github.com/ansible/ansible/issues/77788)
|
||||
- Encryption - Deprecate use of the Python crypt module due to it's impending removal from Python 3.13
|
||||
- PlayContext.verbosity is deprecated and will be removed in 2.18. Use ansible.utils.display.Display().verbosity as the single source of truth.
|
||||
- ``DEFAULT_FACT_PATH``, ``DEFAULT_GATHER_SUBSET`` and ``DEFAULT_GATHER_TIMEOUT`` are deprecated and will be removed in 2.18. Use ``module_defaults`` keyword instead.
|
||||
- ``PlayIterator`` - deprecate ``cache_block_tasks`` and ``get_original_task`` which are noop and unused.
|
||||
- ``Templar`` - deprecate ``shared_loader_obj`` option which is unused. ``ansible.plugins.loader`` is used directly instead.
|
||||
- listify_lookup_plugin_terms, deprecate 'loader/dataloader' parameter as it not used.
|
||||
- vars plugins - determining whether or not to run ansible.legacy vars plugins with the class attribute REQUIRES_WHITELIST is deprecated, set REQUIRES_ENABLED instead.
|
||||
|
||||
Removed Features (previously deprecated)
|
||||
----------------------------------------
|
||||
|
||||
- PlayIterator - remove deprecated ``PlayIterator.ITERATING_*`` and ``PlayIterator.FAILED_*``
|
||||
- Remove deprecated ``ALLOW_WORLD_READABLE_TMPFILES`` configuration option (https://github.com/ansible/ansible/issues/77393)
|
||||
- Remove deprecated ``COMMAND_WARNINGS`` configuration option (https://github.com/ansible/ansible/issues/77394)
|
||||
- Remove deprecated ``DISPLAY_SKIPPED_HOSTS`` environment variable (https://github.com/ansible/ansible/issues/77396)
|
||||
- Remove deprecated ``LIBVIRT_LXC_NOSECLABEL`` environment variable (https://github.com/ansible/ansible/issues/77395)
|
||||
- Remove deprecated ``NETWORK_GROUP_MODULES`` environment variable (https://github.com/ansible/ansible/issues/77397)
|
||||
- Remove deprecated ``UnsafeProxy``
|
||||
- Remove deprecated ``plugin_filters_cfg`` config option from ``default`` section (https://github.com/ansible/ansible/issues/77398)
|
||||
- Remove deprecated functionality that allows loading cache plugins directly without using ``cache_loader``.
|
||||
- Remove deprecated functionality that allows subclassing ``DefaultCallback`` without the corresponding ``doc_fragment``.
|
||||
- Remove deprecated powershell functions ``Load-CommandUtils`` and ``Import-PrivilegeUtil``
|
||||
- apt_key - remove deprecated ``key`` module param
|
||||
- command/shell - remove deprecated ``warn`` module param
|
||||
- get_url - remove deprecated ``sha256sum`` module param
|
||||
- import_playbook - remove deprecated functionality that allows providing additional parameters in free form
|
||||
|
||||
Bugfixes
|
||||
--------
|
||||
|
||||
- "meta: refresh_inventory" does not clobber entries added by add_host/group_by anymore.
|
||||
- Add PyYAML >= 5.1 as a dependency of ansible-core to be compatible with Python 3.8+.
|
||||
- Avoid 'unreachable' error when chmod on AIX has 255 as return code.
|
||||
- Bug fix for when handlers were ran on failed hosts after an ``always`` section was executed (https://github.com/ansible/ansible/issues/52561)
|
||||
- Do not allow handlers from dynamic includes to be notified (https://github.com/ansible/ansible/pull/78399)
|
||||
- Ensure handlers observe ``any_errors_fatal`` (https://github.com/ansible/ansible/issues/46447)
|
||||
- Ensure syntax check errors include playbook filenames
|
||||
- Ensure the correct ``environment_class`` is set on ``AnsibleJ2Template``
|
||||
- Error for collection redirects that do not use fully qualified collection names, as the redirect would be determined by the ``collections`` keyword.
|
||||
- Fix PluginLoader to mimic Python import machinery by adding module to sys.modules before exec
|
||||
- Fix ``-vv`` output for meta tasks to not have an empty message when skipped, print the skip reason instead. (https://github.com/ansible/ansible/issues/77315)
|
||||
- Fix an issue where ``ansible_play_hosts`` and ``ansible_play_batch`` were not properly updated when a failure occured in an explicit block inside the rescue section (https://github.com/ansible/ansible/issues/78612)
|
||||
- Fix dnf module documentation to indicate that comparison operators for package version require spaces around them (https://github.com/ansible/ansible/issues/78295)
|
||||
- Fix for linear strategy when tasks were executed in incorrect order or even removed from execution. (https://github.com/ansible/ansible/issues/64611, https://github.com/ansible/ansible/issues/64999, https://github.com/ansible/ansible/issues/72725, https://github.com/ansible/ansible/issues/72781)
|
||||
- Fix for network_cli not getting all relevant connection options
|
||||
- Fix handlers execution with ``serial`` in the ``linear`` strategy (https://github.com/ansible/ansible/issues/54991)
|
||||
- Fix potential, but unlikely, cases of variable use before definition.
|
||||
- Fix traceback when installing a collection from a git repository and git is not installed (https://github.com/ansible/ansible/issues/77479).
|
||||
- GALAXY_IGNORE_CERTS reworked to allow each server entry to override
|
||||
- More gracefully handle separator errors in jinja2 template overrides (https://github.com/ansible/ansible/pull/77495).
|
||||
- Move undefined check from concat to finalize (https://github.com/ansible/ansible/issues/78156)
|
||||
- Prevent losing unsafe on results returned from lookups (https://github.com/ansible/ansible/issues/77535)
|
||||
- Propagate ``ansible_failed_task`` and ``ansible_failed_result`` to an outer rescue (https://github.com/ansible/ansible/issues/43191)
|
||||
- Properly execute rescue section when an include task fails in all loop iterations (https://github.com/ansible/ansible/issues/23161)
|
||||
- Properly send a skipped message when a list in a ``loop`` is empty and comes from a template (https://github.com/ansible/ansible/issues/77934)
|
||||
- Support colons in jinja2 template override values (https://github.com/ansible/ansible/pull/77495).
|
||||
- ``ansible-galaxy`` - remove extra server api call during dependency resolution for requirements and dependencies that are already satisfied (https://github.com/ansible/ansible/issues/77443).
|
||||
- `ansible-config init -f vars` will now use shorthand format
|
||||
- action plugins now pass cannonical info to modules instead of 'temporary' info from play_context
|
||||
- ansible - Exclude Python 2.6 from Python interpreter discovery.
|
||||
- ansible-config dump - Only display plugin type headers when plugin options are changed if --only-changed is specified.
|
||||
- ansible-configi init should now skip internal reserved config entries
|
||||
- ansible-connection - decrypt vaulted parameters before sending over the socket, as vault secrets are not available on the other side.
|
||||
- ansible-console - Renamed the first argument of ``ConsoleCLI.default`` from ``arg`` to ``line`` to match the first argument of the same method on the base class ``Cmd``.
|
||||
- ansible-console commands now all have a help entry.
|
||||
- ansible-console fixed to load modules via fqcn, short names and handle redirects.
|
||||
- ansible-console now shows installed collection modules.
|
||||
- ansible-doc - fix listing plugins.
|
||||
- ansible-doc will not add 'website for' in ":ref:" substitutions as it made them confusing.
|
||||
- ansible-doc will not again warn and skip when missing docs, always show the doc file (for edit on github) and match legacy plugins.
|
||||
- ansible-doc will not traceback when legacy plugins don't have docs nor adjacent file with docs
|
||||
- ansible-doc will now also display until as an 'implicit' templating keyword.
|
||||
- ansible-doc will now not display version_added_collection under same conditions it does not display version_added.
|
||||
- ansible-galaxy - Fix detection of ``--role-file`` in arguments for implicit role invocation (https://github.com/ansible/ansible/issues/78204)
|
||||
- ansible-galaxy - Fix exit codes for role search and delete (https://github.com/ansible/ansible/issues/78516)
|
||||
- ansible-galaxy - Fix loading boolean server options so False doesn't become a truthy string (https://github.com/ansible/ansible/issues/77416).
|
||||
- ansible-galaxy - Fix reinitializing the whole collection directory with ``ansible-galaxy collection init ns.coll --force``. Now directories and files that are not included in the collection skeleton will be removed.
|
||||
- ansible-galaxy - Fix unhandled traceback if a role's dependencies in meta/main.yml or meta/requirements.yml are not lists.
|
||||
- ansible-galaxy - do not require mandatory keys in the ``galaxy.yml`` of source collections when listing them (https://github.com/ansible/ansible/issues/70180).
|
||||
- ansible-galaxy - fix installing collections that have dependencies in the metadata set to null instead of an empty dictionary (https://github.com/ansible/ansible/issues/77560).
|
||||
- ansible-galaxy - fix listing collections that contains metadata but the namespace or name are not strings.
|
||||
- ansible-galaxy - fix missing meta/runtime.yml in default galaxy skeleton used for ansible-galaxy collection init
|
||||
- ansible-galaxy - fix setting the cache for paginated responses from Galaxy NG/AH (https://github.com/ansible/ansible/issues/77911).
|
||||
- ansible-galaxy - handle unsupported versions of resolvelib gracefully.
|
||||
- ansible-galaxy --ignore-certs now has proper precedence over configuration
|
||||
- ansible-test - Allow disabled, unsupported, unstable and destructive integration test targets to be selected using their respective prefixes.
|
||||
- ansible-test - Allow unstable tests to run when targeted changes are made and the ``--allow-unstable-changed`` option is specified (resolves https://github.com/ansible/ansible/issues/74213).
|
||||
- ansible-test - Always remove containers after failing to create/run them. This avoids leaving behind created containers when using podman.
|
||||
- ansible-test - Correctly detect when running as the ``root`` user (UID 0) on the origin host. The result of the detection was incorrectly being inverted.
|
||||
- ansible-test - Delegation for commands which generate output for programmatic consumption no longer redirect all output to stdout. The affected commands and options are ``shell``, ``sanity --lint``, ``sanity --list-tests``, ``integration --list-targets``, ``coverage analyze``
|
||||
- ansible-test - Delegation now properly handles arguments given after ``--`` on the command line.
|
||||
- ansible-test - Don't fail if network cannot be disconnected (https://github.com/ansible/ansible/pull/77472)
|
||||
- ansible-test - Fix bootstrapping of Python 3.9 on Ubuntu 20.04 remotes.
|
||||
- ansible-test - Fix change detection for ansible-test's own integration tests.
|
||||
- ansible-test - Fix internal validation of remote completion configuration.
|
||||
- ansible-test - Fix skipping of tests marked ``needs/python`` on the origin host.
|
||||
- ansible-test - Fix skipping of tests marked ``needs/root`` on the origin host.
|
||||
- ansible-test - Prevent ``--target-`` prefixed options for the ``shell`` command from being combined with legacy environment options.
|
||||
- ansible-test - Sanity test output with the ``--lint`` option is no longer mixed in with bootstrapping output.
|
||||
- ansible-test - Subprocesses are now isolated from the stdin, stdout and stderr of ansible-test. This avoids issues with subprocesses tampering with the file descriptors, such as SSH making them non-blocking. As a result of this change, subprocess output from unit and integration tests on stderr now go to stdout.
|
||||
- ansible-test - Subprocesses no longer have access to the TTY ansible-test is connected to, if any. This maintains consistent behavior between local testing and CI systems, which typically do not provide a TTY. Tests which require a TTY should use pexpect or another mechanism to create a PTY.
|
||||
- ansible-test - Temporary executables are now verified as executable after creation. Without this check, path injected scripts may not be found, typically on systems with ``/tmp`` mounted using the "noexec" option. This can manifest as a missing Python interpreter, or use of the wrong Python interpreter, as well as other error conditions.
|
||||
- ansible-test - Test configuration for collections is now parsed only once, prior to delegation. Fixes issue: https://github.com/ansible/ansible/issues/78334
|
||||
- ansible-test - Test containers are now run with the ``--tmpfs`` option for ``/tmp``, ``/run`` and ``/run/lock``. This allows use of containers built without the ``VOLUME`` instruction. Additionally, containers with those volumes defined no longer create anonymous volumes for them. This avoids leaving behind volumes on the container host after the container is stopped and deleted.
|
||||
- ansible-test - The ``shell`` command no longer redirects all output to stdout when running a provided command. Any command output written to stderr will be mixed with the stderr output from ansible-test.
|
||||
- ansible-test - The ``shell`` command no longer requests a TTY when using delegation unless an interactive shell is being used. An interactive shell is the default behavior when no command is given to pass to the shell.
|
||||
- ansible-test - ansible-doc sanity test - Correctly determine the fully-qualified collection name for plugins in subdirectories, resolving https://github.com/ansible/ansible/issues/78490.
|
||||
- ansible-test - validate-modules - Documentation-only modules, used for documenting actions, are now allowed to have docstrings (https://github.com/ansible/ansible/issues/77972).
|
||||
- ansible-test compile sanity test - do not crash if a column could not be determined for an error (https://github.com/ansible/ansible/pull/77465).
|
||||
- apt - Fix module failure when a package is not installed and only_upgrade=True. Skip that package and check the remaining requested packages for upgrades. (https://github.com/ansible/ansible/issues/78762)
|
||||
- apt - don't actually update the cache in check mode with update_cache=true.
|
||||
- apt - don't mark existing packages as manually installed in check mode (https://github.com/ansible/ansible/issues/66413).
|
||||
- apt - fix package selection to include /etc/apt/preferences(.d) (https://github.com/ansible/ansible/issues/77969)
|
||||
- apt module now correctly handles virtual packages.
|
||||
- arg_spec - Fix incorrect ``no_log`` warning when a parameter alias is used (https://github.com/ansible/ansible/pull/77576)
|
||||
- callback plugins - do not crash when ``exception`` passed from a module is not a string (https://github.com/ansible/ansible/issues/75726, https://github.com/ansible/ansible/pull/77781).
|
||||
- cli now emits clearer error on no hosts selected
|
||||
- config, ensure that pulling values from configmanager are templated if possible.
|
||||
- display itself should be single source of 'verbosity' level to the engine.
|
||||
- dnf - Condense a few internal boolean returns.
|
||||
- dnf - The ``nobest`` option now also works for ``state=latest``.
|
||||
- dnf - The ``skip_broken`` option is now used in installs (https://github.com/ansible/ansible/issues/73072).
|
||||
- dnf - fix output parsing on systems with ``LANGUAGE`` set to a language other than English (https://github.com/ansible/ansible/issues/78193)
|
||||
- facts - fix IP address discovery for specific interface names (https://github.com/ansible/ansible/issues/77792).
|
||||
- facts - fix processor facts on AIX: correctly detect number of cores and threads, turn ``processor`` into a list (https://github.com/ansible/ansible/pull/78223).
|
||||
- fetch_file - Ensure we only use the filename when calculating a tempfile, and do not incude the query string (https://github.com/ansible/ansible/issues/29680)
|
||||
- fetch_file - properly split files with multiple file extensions (https://github.com/ansible/ansible/pull/75257)
|
||||
- file - setting attributes of symbolic links or files that are hard linked no longer fails when the link target is unspecified (https://github.com/ansible/ansible/issues/76142).
|
||||
- file backed cache plugins now handle concurrent access by making atomic updates to the files.
|
||||
- git module fix docs and proper use of ssh wrapper script and GIT_SSH_COMMAND depending on version.
|
||||
- if a config setting prevents running ansible it should at least show it's "origin".
|
||||
- include module - add docs url to include deprecation message (https://github.com/ansible/ansible/issues/76684).
|
||||
- items2dict - Handle error if an item is not a dictionary or is missing the required keys (https://github.com/ansible/ansible/issues/70337).
|
||||
- local facts - if a local fact in the facts directory cannot be stated, store an error message as the fact value and emit a warning just as if just as if the facts execution has failed. The stat can fail e.g. on dangling symlinks.
|
||||
- lookup plugin - catch KeyError when lookup returns dictionary (https://github.com/ansible/ansible/pull/77789).
|
||||
- module_utils - Make distro.id() report newer versions of OpenSuSE (at least >=15) also report as ``opensuse``. They report themselves as ``opensuse-leap``.
|
||||
- module_utils.service - daemonize - Avoid modifying the list of file descriptors while iterating over it.
|
||||
- null_representation config entry changed to 'raw' as it must allow 'none/null' and empty string.
|
||||
- paramiko - Add a new option to allow paramiko >= 2.9 to easily work with all devices now that rsa-sha2 support was added to paramiko, which prevented communication with numerous platforms. (https://github.com/ansible/ansible/issues/76737)
|
||||
- paramiko - Add back support for ``ssh_args``, ``ssh_common_args``, and ``ssh_extra_args`` for parsing the ``ProxyCommand`` (https://github.com/ansible/ansible/issues/78750)
|
||||
- password lookup does not ignore k=v arguments anymore.
|
||||
- pause module will now report proper 'echo' vs always being true.
|
||||
- pip - fix cases where resolution of pip Python module fails when importlib.util has not already been imported
|
||||
- plugin loader - Sort results when fuzzy matching plugin names (https://github.com/ansible/ansible/issues/77966).
|
||||
- plugin loader will now load config data for plugin by name instead of by file to avoid issues with the same file being loaded under different names (fqcn + short name).
|
||||
- plugin loader, now when skipping a plugin due to an abstract method error we provide that in 'verbose' mode instead of totally obscuring the error. The current implementation assumed only the base classes would trigger this and failed to consider 'in development' plugins.
|
||||
- prevent lusermod from using group name instead of group id (https://github.com/ansible/ansible/pull/77914)
|
||||
- prevent type annotation shim failures from causing runtime failures (https://github.com/ansible/ansible/pull/77860)
|
||||
- psrp connection now handles default to inventory_hostname correctly.
|
||||
- roles, fixed issue with roles loading paths not contained in the role itself when using the `_from` options.
|
||||
- setup - Adds a default value to ``lvm_facts`` when lvm or lvm2 is not installed on linux (https://github.com/ansible/ansible/issues/17393)
|
||||
- shell plugins now give a more user friendly error when fed the wrong type of data.
|
||||
- template module/lookup - fix ``convert_data`` option that was effectively always set to True for Jinja macros (https://github.com/ansible/ansible/issues/78141)
|
||||
- unarchive - if unzip is available but zipinfo is not, use unzip -Z instead of zipinfo (https://github.com/ansible/ansible/issues/76959).
|
||||
- uri - properly use uri parameter use_proxy (https://github.com/ansible/ansible/issues/58632)
|
||||
- uri module - failed status when Authentication Bearer used with netrc, because Basic authentication was by default. Fix now allows to ignore netrc by changing use_netrc=False (https://github.com/ansible/ansible/issues/74397).
|
||||
- urls - Guard imports of ``urllib3`` by catching ``Exception`` instead of ``ImportError`` to prevent exceptions in the import process of optional dependencies from preventing use of ``urls.py`` (https://github.com/ansible/ansible/issues/78648)
|
||||
- user - Fix error "Permission denied" in user module while generating SSH keys (https://github.com/ansible/ansible/issues/78017).
|
||||
- user - fix creating a local user if the user group already exists (https://github.com/ansible/ansible/pull/75042)
|
||||
- user module - Replace uses of the deprecated ``spwd`` python module with ctypes (https://github.com/ansible/ansible/pull/78050)
|
||||
- validate-modules - fix validating version_added for new options.
|
||||
- variablemanager, more efficient read of vars files
|
||||
- vault secrets file now executes in the correct context when it is a symlink (not resolved to canonical file).
|
||||
- wait_for - Read file and perform comparisons using bytes to avoid decode errors (https://github.com/ansible/ansible/issues/78214)
|
||||
- winrm - Ensure ``kinit`` is run with the same ``PATH`` env var as the Ansible process
|
||||
- winrm connection now handles default to inventory_hostname correctly.
|
||||
- yaml inventory plugin - fix the error message for non-string hostnames (https://github.com/ansible/ansible/issues/77519).
|
||||
- yum - fix traceback when ``releasever`` is specified with ``latest`` (https://github.com/ansible/ansible/issues/78058)
|
||||
|
||||
New Plugins
|
||||
-----------
|
||||
|
||||
Test
|
||||
~~~~
|
||||
|
||||
- uri - is the string a valid URI
|
||||
- url - is the string a valid URL
|
||||
- urn - is the string a valid URN
|
||||
@ -1,6 +0,0 @@
|
||||
Placeholder changelog
|
||||
=====================
|
||||
|
||||
This file is a placeholder; a version-specific ``CHANGELOG-vX.Y.rst`` will be generated during releases from fragments
|
||||
under changelogs/fragments. On release branches once a release has been created, consult the branch's version-specific
|
||||
file for changes that have occurred in that branch.
|
||||
@ -1,721 +0,0 @@
|
||||
ancestor: 2.13.0
|
||||
releases:
|
||||
2.14.0b1:
|
||||
changes:
|
||||
breaking_changes:
|
||||
- Allow for lazy evaluation of Jinja2 expressions (https://github.com/ansible/ansible/issues/56017)
|
||||
- The default ansible-galaxy role skeletons no longer contain .travis.yml files.
|
||||
You can configure ansible-galaxy to use a custom role skeleton that contains
|
||||
a .travis.yml file to continue using Galaxy's integration with Travis CI.
|
||||
- ansible - At startup the filesystem encoding and locale are checked to verify
|
||||
they are UTF-8. If not, the process exits with an error reporting the errant
|
||||
encoding.
|
||||
- ansible - Increase minimum Python requirement to Python 3.9 for CLI utilities
|
||||
and controller code
|
||||
- ansible-test - At startup the filesystem encoding is checked to verify it
|
||||
is UTF-8. If not, the process exits with an error reporting the errant encoding.
|
||||
- ansible-test - At startup the locale is configured as ``en_US.UTF-8``, with
|
||||
a fallback to ``C.UTF-8``. If neither encoding is available the process exits
|
||||
with an error. If the fallback is used, a warning is displayed. In previous
|
||||
versions the ``en_US.UTF-8`` locale was always requested. However, no startup
|
||||
checking was performed to verify the locale was successfully configured.
|
||||
- strategy plugins - Make ``ignore_unreachable`` to increase ``ignored`` and
|
||||
``ok`` and counter, not ``skipped`` and ``unreachable``. (https://github.com/ansible/ansible/issues/77690)
|
||||
bugfixes:
|
||||
- '"meta: refresh_inventory" does not clobber entries added by add_host/group_by
|
||||
anymore.'
|
||||
- Add PyYAML >= 5.1 as a dependency of ansible-core to be compatible with Python
|
||||
3.8+.
|
||||
- Avoid 'unreachable' error when chmod on AIX has 255 as return code.
|
||||
- Bug fix for when handlers were ran on failed hosts after an ``always`` section
|
||||
was executed (https://github.com/ansible/ansible/issues/52561)
|
||||
- Do not allow handlers from dynamic includes to be notified (https://github.com/ansible/ansible/pull/78399)
|
||||
- Ensure handlers observe ``any_errors_fatal`` (https://github.com/ansible/ansible/issues/46447)
|
||||
- Ensure syntax check errors include playbook filenames
|
||||
- Ensure the correct ``environment_class`` is set on ``AnsibleJ2Template``
|
||||
- Error for collection redirects that do not use fully qualified collection
|
||||
names, as the redirect would be determined by the ``collections`` keyword.
|
||||
- Fix PluginLoader to mimic Python import machinery by adding module to sys.modules
|
||||
before exec
|
||||
- Fix ``-vv`` output for meta tasks to not have an empty message when skipped,
|
||||
print the skip reason instead. (https://github.com/ansible/ansible/issues/77315)
|
||||
- Fix an issue where ``ansible_play_hosts`` and ``ansible_play_batch`` were
|
||||
not properly updated when a failure occured in an explicit block inside the
|
||||
rescue section (https://github.com/ansible/ansible/issues/78612)
|
||||
- Fix dnf module documentation to indicate that comparison operators for package
|
||||
version require spaces around them (https://github.com/ansible/ansible/issues/78295)
|
||||
- Fix for linear strategy when tasks were executed in incorrect order or even
|
||||
removed from execution. (https://github.com/ansible/ansible/issues/64611,
|
||||
https://github.com/ansible/ansible/issues/64999, https://github.com/ansible/ansible/issues/72725,
|
||||
https://github.com/ansible/ansible/issues/72781)
|
||||
- Fix for network_cli not getting all relevant connection options
|
||||
- Fix handlers execution with ``serial`` in the ``linear`` strategy (https://github.com/ansible/ansible/issues/54991)
|
||||
- Fix potential, but unlikely, cases of variable use before definition.
|
||||
- Fix traceback when installing a collection from a git repository and git is
|
||||
not installed (https://github.com/ansible/ansible/issues/77479).
|
||||
- GALAXY_IGNORE_CERTS reworked to allow each server entry to override
|
||||
- More gracefully handle separator errors in jinja2 template overrides (https://github.com/ansible/ansible/pull/77495).
|
||||
- Move undefined check from concat to finalize (https://github.com/ansible/ansible/issues/78156)
|
||||
- Prevent losing unsafe on results returned from lookups (https://github.com/ansible/ansible/issues/77535)
|
||||
- Propagate ``ansible_failed_task`` and ``ansible_failed_result`` to an outer
|
||||
rescue (https://github.com/ansible/ansible/issues/43191)
|
||||
- Properly execute rescue section when an include task fails in all loop iterations
|
||||
(https://github.com/ansible/ansible/issues/23161)
|
||||
- Properly send a skipped message when a list in a ``loop`` is empty and comes
|
||||
from a template (https://github.com/ansible/ansible/issues/77934)
|
||||
- Support colons in jinja2 template override values (https://github.com/ansible/ansible/pull/77495).
|
||||
- '``ansible-galaxy`` - remove extra server api call during dependency resolution
|
||||
for requirements and dependencies that are already satisfied (https://github.com/ansible/ansible/issues/77443).'
|
||||
- '`ansible-config init -f vars` will now use shorthand format'
|
||||
- action plugins now pass cannonical info to modules instead of 'temporary'
|
||||
info from play_context
|
||||
- ansible - Exclude Python 2.6 from Python interpreter discovery.
|
||||
- ansible-config dump - Only display plugin type headers when plugin options
|
||||
are changed if --only-changed is specified.
|
||||
- ansible-configi init should now skip internal reserved config entries
|
||||
- ansible-connection - decrypt vaulted parameters before sending over the socket,
|
||||
as vault secrets are not available on the other side.
|
||||
- ansible-console - Renamed the first argument of ``ConsoleCLI.default`` from
|
||||
``arg`` to ``line`` to match the first argument of the same method on the
|
||||
base class ``Cmd``.
|
||||
- ansible-console commands now all have a help entry.
|
||||
- ansible-console fixed to load modules via fqcn, short names and handle redirects.
|
||||
- ansible-console now shows installed collection modules.
|
||||
- ansible-doc - fix listing plugins.
|
||||
- ansible-doc will not add 'website for' in ":ref:" substitutions as it made
|
||||
them confusing.
|
||||
- ansible-doc will not again warn and skip when missing docs, always show the
|
||||
doc file (for edit on github) and match legacy plugins.
|
||||
- ansible-doc will not traceback when legacy plugins don't have docs nor adjacent
|
||||
file with docs
|
||||
- ansible-doc will now also display until as an 'implicit' templating keyword.
|
||||
- ansible-doc will now not display version_added_collection under same conditions
|
||||
it does not display version_added.
|
||||
- ansible-galaxy - Fix detection of ``--role-file`` in arguments for implicit
|
||||
role invocation (https://github.com/ansible/ansible/issues/78204)
|
||||
- ansible-galaxy - Fix exit codes for role search and delete (https://github.com/ansible/ansible/issues/78516)
|
||||
- ansible-galaxy - Fix loading boolean server options so False doesn't become
|
||||
a truthy string (https://github.com/ansible/ansible/issues/77416).
|
||||
- ansible-galaxy - Fix reinitializing the whole collection directory with ``ansible-galaxy
|
||||
collection init ns.coll --force``. Now directories and files that are not
|
||||
included in the collection skeleton will be removed.
|
||||
- ansible-galaxy - Fix unhandled traceback if a role's dependencies in meta/main.yml
|
||||
or meta/requirements.yml are not lists.
|
||||
- ansible-galaxy - do not require mandatory keys in the ``galaxy.yml`` of source
|
||||
collections when listing them (https://github.com/ansible/ansible/issues/70180).
|
||||
- ansible-galaxy - fix installing collections that have dependencies in the
|
||||
metadata set to null instead of an empty dictionary (https://github.com/ansible/ansible/issues/77560).
|
||||
- ansible-galaxy - fix listing collections that contains metadata but the namespace
|
||||
or name are not strings.
|
||||
- ansible-galaxy - fix missing meta/runtime.yml in default galaxy skeleton used
|
||||
for ansible-galaxy collection init
|
||||
- ansible-galaxy - fix setting the cache for paginated responses from Galaxy
|
||||
NG/AH (https://github.com/ansible/ansible/issues/77911).
|
||||
- ansible-galaxy - handle unsupported versions of resolvelib gracefully.
|
||||
- ansible-galaxy --ignore-certs now has proper precedence over configuration
|
||||
- ansible-test - Allow disabled, unsupported, unstable and destructive integration
|
||||
test targets to be selected using their respective prefixes.
|
||||
- ansible-test - Allow unstable tests to run when targeted changes are made
|
||||
and the ``--allow-unstable-changed`` option is specified (resolves https://github.com/ansible/ansible/issues/74213).
|
||||
- ansible-test - Always remove containers after failing to create/run them.
|
||||
This avoids leaving behind created containers when using podman.
|
||||
- ansible-test - Correctly detect when running as the ``root`` user (UID 0)
|
||||
on the origin host. The result of the detection was incorrectly being inverted.
|
||||
- ansible-test - Delegation for commands which generate output for programmatic
|
||||
consumption no longer redirect all output to stdout. The affected commands
|
||||
and options are ``shell``, ``sanity --lint``, ``sanity --list-tests``, ``integration
|
||||
--list-targets``, ``coverage analyze``
|
||||
- ansible-test - Delegation now properly handles arguments given after ``--``
|
||||
on the command line.
|
||||
- ansible-test - Don't fail if network cannot be disconnected (https://github.com/ansible/ansible/pull/77472)
|
||||
- ansible-test - Fix bootstrapping of Python 3.9 on Ubuntu 20.04 remotes.
|
||||
- ansible-test - Fix change detection for ansible-test's own integration tests.
|
||||
- ansible-test - Fix internal validation of remote completion configuration.
|
||||
- ansible-test - Fix skipping of tests marked ``needs/python`` on the origin
|
||||
host.
|
||||
- ansible-test - Fix skipping of tests marked ``needs/root`` on the origin host.
|
||||
- ansible-test - Prevent ``--target-`` prefixed options for the ``shell`` command
|
||||
from being combined with legacy environment options.
|
||||
- ansible-test - Sanity test output with the ``--lint`` option is no longer
|
||||
mixed in with bootstrapping output.
|
||||
- ansible-test - Subprocesses are now isolated from the stdin, stdout and stderr
|
||||
of ansible-test. This avoids issues with subprocesses tampering with the file
|
||||
descriptors, such as SSH making them non-blocking. As a result of this change,
|
||||
subprocess output from unit and integration tests on stderr now go to stdout.
|
||||
- ansible-test - Subprocesses no longer have access to the TTY ansible-test
|
||||
is connected to, if any. This maintains consistent behavior between local
|
||||
testing and CI systems, which typically do not provide a TTY. Tests which
|
||||
require a TTY should use pexpect or another mechanism to create a PTY.
|
||||
- ansible-test - Temporary executables are now verified as executable after
|
||||
creation. Without this check, path injected scripts may not be found, typically
|
||||
on systems with ``/tmp`` mounted using the "noexec" option. This can manifest
|
||||
as a missing Python interpreter, or use of the wrong Python interpreter, as
|
||||
well as other error conditions.
|
||||
- 'ansible-test - Test configuration for collections is now parsed only once,
|
||||
prior to delegation. Fixes issue: https://github.com/ansible/ansible/issues/78334'
|
||||
- ansible-test - Test containers are now run with the ``--tmpfs`` option for
|
||||
``/tmp``, ``/run`` and ``/run/lock``. This allows use of containers built
|
||||
without the ``VOLUME`` instruction. Additionally, containers with those volumes
|
||||
defined no longer create anonymous volumes for them. This avoids leaving behind
|
||||
volumes on the container host after the container is stopped and deleted.
|
||||
- ansible-test - The ``shell`` command no longer redirects all output to stdout
|
||||
when running a provided command. Any command output written to stderr will
|
||||
be mixed with the stderr output from ansible-test.
|
||||
- ansible-test - The ``shell`` command no longer requests a TTY when using delegation
|
||||
unless an interactive shell is being used. An interactive shell is the default
|
||||
behavior when no command is given to pass to the shell.
|
||||
- ansible-test - ansible-doc sanity test - Correctly determine the fully-qualified
|
||||
collection name for plugins in subdirectories, resolving https://github.com/ansible/ansible/issues/78490.
|
||||
- ansible-test - validate-modules - Documentation-only modules, used for documenting
|
||||
actions, are now allowed to have docstrings (https://github.com/ansible/ansible/issues/77972).
|
||||
- ansible-test compile sanity test - do not crash if a column could not be determined
|
||||
for an error (https://github.com/ansible/ansible/pull/77465).
|
||||
- apt - Fix module failure when a package is not installed and only_upgrade=True.
|
||||
Skip that package and check the remaining requested packages for upgrades.
|
||||
(https://github.com/ansible/ansible/issues/78762)
|
||||
- apt - don't actually update the cache in check mode with update_cache=true.
|
||||
- apt - don't mark existing packages as manually installed in check mode (https://github.com/ansible/ansible/issues/66413).
|
||||
- apt - fix package selection to include /etc/apt/preferences(.d) (https://github.com/ansible/ansible/issues/77969)
|
||||
- apt module now correctly handles virtual packages.
|
||||
- arg_spec - Fix incorrect ``no_log`` warning when a parameter alias is used
|
||||
(https://github.com/ansible/ansible/pull/77576)
|
||||
- callback plugins - do not crash when ``exception`` passed from a module is
|
||||
not a string (https://github.com/ansible/ansible/issues/75726, https://github.com/ansible/ansible/pull/77781).
|
||||
- cli now emits clearer error on no hosts selected
|
||||
- config, ensure that pulling values from configmanager are templated if possible.
|
||||
- display itself should be single source of 'verbosity' level to the engine.
|
||||
- dnf - Condense a few internal boolean returns.
|
||||
- dnf - The ``nobest`` option now also works for ``state=latest``.
|
||||
- dnf - The ``skip_broken`` option is now used in installs (https://github.com/ansible/ansible/issues/73072).
|
||||
- dnf - fix output parsing on systems with ``LANGUAGE`` set to a language other
|
||||
than English (https://github.com/ansible/ansible/issues/78193)
|
||||
- facts - fix IP address discovery for specific interface names (https://github.com/ansible/ansible/issues/77792).
|
||||
- 'facts - fix processor facts on AIX: correctly detect number of cores and
|
||||
threads, turn ``processor`` into a list (https://github.com/ansible/ansible/pull/78223).'
|
||||
- fetch_file - Ensure we only use the filename when calculating a tempfile,
|
||||
and do not incude the query string (https://github.com/ansible/ansible/issues/29680)
|
||||
- fetch_file - properly split files with multiple file extensions (https://github.com/ansible/ansible/pull/75257)
|
||||
- file - setting attributes of symbolic links or files that are hard linked
|
||||
no longer fails when the link target is unspecified (https://github.com/ansible/ansible/issues/76142).
|
||||
- file backed cache plugins now handle concurrent access by making atomic updates
|
||||
to the files.
|
||||
- git module fix docs and proper use of ssh wrapper script and GIT_SSH_COMMAND
|
||||
depending on version.
|
||||
- if a config setting prevents running ansible it should at least show it's
|
||||
"origin".
|
||||
- include module - add docs url to include deprecation message (https://github.com/ansible/ansible/issues/76684).
|
||||
- items2dict - Handle error if an item is not a dictionary or is missing the
|
||||
required keys (https://github.com/ansible/ansible/issues/70337).
|
||||
- local facts - if a local fact in the facts directory cannot be stated, store
|
||||
an error message as the fact value and emit a warning just as if just as if
|
||||
the facts execution has failed. The stat can fail e.g. on dangling symlinks.
|
||||
- lookup plugin - catch KeyError when lookup returns dictionary (https://github.com/ansible/ansible/pull/77789).
|
||||
- module_utils - Make distro.id() report newer versions of OpenSuSE (at least
|
||||
>=15) also report as ``opensuse``. They report themselves as ``opensuse-leap``.
|
||||
- module_utils.service - daemonize - Avoid modifying the list of file descriptors
|
||||
while iterating over it.
|
||||
- null_representation config entry changed to 'raw' as it must allow 'none/null'
|
||||
and empty string.
|
||||
- paramiko - Add a new option to allow paramiko >= 2.9 to easily work with all
|
||||
devices now that rsa-sha2 support was added to paramiko, which prevented communication
|
||||
with numerous platforms. (https://github.com/ansible/ansible/issues/76737)
|
||||
- paramiko - Add back support for ``ssh_args``, ``ssh_common_args``, and ``ssh_extra_args``
|
||||
for parsing the ``ProxyCommand`` (https://github.com/ansible/ansible/issues/78750)
|
||||
- password lookup does not ignore k=v arguments anymore.
|
||||
- pause module will now report proper 'echo' vs always being true.
|
||||
- pip - fix cases where resolution of pip Python module fails when importlib.util
|
||||
has not already been imported
|
||||
- plugin loader - Sort results when fuzzy matching plugin names (https://github.com/ansible/ansible/issues/77966).
|
||||
- plugin loader will now load config data for plugin by name instead of by file
|
||||
to avoid issues with the same file being loaded under different names (fqcn
|
||||
+ short name).
|
||||
- plugin loader, now when skipping a plugin due to an abstract method error
|
||||
we provide that in 'verbose' mode instead of totally obscuring the error.
|
||||
The current implementation assumed only the base classes would trigger this
|
||||
and failed to consider 'in development' plugins.
|
||||
- prevent lusermod from using group name instead of group id (https://github.com/ansible/ansible/pull/77914)
|
||||
- prevent type annotation shim failures from causing runtime failures (https://github.com/ansible/ansible/pull/77860)
|
||||
- psrp connection now handles default to inventory_hostname correctly.
|
||||
- roles, fixed issue with roles loading paths not contained in the role itself
|
||||
when using the `_from` options.
|
||||
- setup - Adds a default value to ``lvm_facts`` when lvm or lvm2 is not installed
|
||||
on linux (https://github.com/ansible/ansible/issues/17393)
|
||||
- shell plugins now give a more user friendly error when fed the wrong type
|
||||
of data.
|
||||
- template module/lookup - fix ``convert_data`` option that was effectively
|
||||
always set to True for Jinja macros (https://github.com/ansible/ansible/issues/78141)
|
||||
- unarchive - if unzip is available but zipinfo is not, use unzip -Z instead
|
||||
of zipinfo (https://github.com/ansible/ansible/issues/76959).
|
||||
- uri - properly use uri parameter use_proxy (https://github.com/ansible/ansible/issues/58632)
|
||||
- uri module - failed status when Authentication Bearer used with netrc, because
|
||||
Basic authentication was by default. Fix now allows to ignore netrc by changing
|
||||
use_netrc=False (https://github.com/ansible/ansible/issues/74397).
|
||||
- urls - Guard imports of ``urllib3`` by catching ``Exception`` instead of ``ImportError``
|
||||
to prevent exceptions in the import process of optional dependencies from
|
||||
preventing use of ``urls.py`` (https://github.com/ansible/ansible/issues/78648)
|
||||
- user - Fix error "Permission denied" in user module while generating SSH keys
|
||||
(https://github.com/ansible/ansible/issues/78017).
|
||||
- user - fix creating a local user if the user group already exists (https://github.com/ansible/ansible/pull/75042)
|
||||
- user module - Replace uses of the deprecated ``spwd`` python module with ctypes
|
||||
(https://github.com/ansible/ansible/pull/78050)
|
||||
- validate-modules - fix validating version_added for new options.
|
||||
- variablemanager, more efficient read of vars files
|
||||
- vault secrets file now executes in the correct context when it is a symlink
|
||||
(not resolved to canonical file).
|
||||
- wait_for - Read file and perform comparisons using bytes to avoid decode errors
|
||||
(https://github.com/ansible/ansible/issues/78214)
|
||||
- winrm - Ensure ``kinit`` is run with the same ``PATH`` env var as the Ansible
|
||||
process
|
||||
- winrm connection now handles default to inventory_hostname correctly.
|
||||
- yaml inventory plugin - fix the error message for non-string hostnames (https://github.com/ansible/ansible/issues/77519).
|
||||
- yum - fix traceback when ``releasever`` is specified with ``latest`` (https://github.com/ansible/ansible/issues/78058)
|
||||
deprecated_features:
|
||||
- Deprecate ability of lookup plugins to return arbitrary data. Lookup plugins
|
||||
must return lists, failing to do so will be an error in 2.18. (https://github.com/ansible/ansible/issues/77788)
|
||||
- Encryption - Deprecate use of the Python crypt module due to it's impending
|
||||
removal from Python 3.13
|
||||
- PlayContext.verbosity is deprecated and will be removed in 2.18. Use ansible.utils.display.Display().verbosity
|
||||
as the single source of truth.
|
||||
- '``DEFAULT_FACT_PATH``, ``DEFAULT_GATHER_SUBSET`` and ``DEFAULT_GATHER_TIMEOUT``
|
||||
are deprecated and will be removed in 2.18. Use ``module_defaults`` keyword
|
||||
instead.'
|
||||
- '``PlayIterator`` - deprecate ``cache_block_tasks`` and ``get_original_task``
|
||||
which are noop and unused.'
|
||||
- '``Templar`` - deprecate ``shared_loader_obj`` option which is unused. ``ansible.plugins.loader``
|
||||
is used directly instead.'
|
||||
- listify_lookup_plugin_terms, deprecate 'loader/dataloader' parameter as it
|
||||
not used.
|
||||
- vars plugins - determining whether or not to run ansible.legacy vars plugins
|
||||
with the class attribute REQUIRES_WHITELIST is deprecated, set REQUIRES_ENABLED
|
||||
instead.
|
||||
major_changes:
|
||||
- Move handler processing into new ``PlayIterator`` phase to use the configured
|
||||
strategy (https://github.com/ansible/ansible/issues/65067)
|
||||
- ansible - At startup the filesystem encoding and locale are checked to verify
|
||||
they are UTF-8. If not, the process exits with an error reporting the errant
|
||||
encoding.
|
||||
- ansible - Increase minimum Python requirement to Python 3.9 for CLI utilities
|
||||
and controller code
|
||||
- ansible-test - At startup the filesystem encoding is checked to verify it
|
||||
is UTF-8. If not, the process exits with an error reporting the errant encoding.
|
||||
- ansible-test - At startup the locale is configured as ``en_US.UTF-8``, with
|
||||
a fallback to ``C.UTF-8``. If neither encoding is available the process exits
|
||||
with an error. If the fallback is used, a warning is displayed. In previous
|
||||
versions the ``en_US.UTF-8`` locale was always requested. However, no startup
|
||||
checking was performed to verify the locale was successfully configured.
|
||||
minor_changes:
|
||||
- Add a new "INVENTORY_UNPARSED_WARNING" flag add to hide the "No inventory
|
||||
was parsed, only implicit localhost is available" warning
|
||||
- "Add an 'action_plugin' field for modules in runtime.yml plugin_routing.\n\nThis
|
||||
fixes module_defaults by supporting modules-as-redirected-actions\nwithout
|
||||
redirecting module_defaults entries to the common action.\n\n.. code: yaml\n\n
|
||||
\ plugin_routing:\n action:\n facts:\n redirect: ns.coll.eos\n
|
||||
\ command:\n redirect: ns.coll.eos\n modules:\n facts:\n
|
||||
\ redirect: ns.coll.eos_facts\n command:\n redirect:
|
||||
ns.coll.eos_command\n\nWith the runtime.yml above for ns.coll, a task such
|
||||
as\n\n.. code: yaml\n\n - hosts: all\n module_defaults:\n ns.coll.eos_facts:
|
||||
{'valid_for_eos_facts': 'value'}\n ns.coll.eos_command: {'not_valid_for_eos_facts':
|
||||
'value'}\n tasks:\n - ns.coll.facts:\n\nwill end up with defaults
|
||||
for eos_facts and eos_command\nsince both modules redirect to the same action.\n\nTo
|
||||
select an action plugin for a module without merging\nmodule_defaults, define
|
||||
an action_plugin field for the resolved\nmodule in the runtime.yml.\n\n..
|
||||
code: yaml\n\n plugin_routing:\n modules:\n facts:\n redirect:
|
||||
ns.coll.eos_facts\n action_plugin: ns.coll.eos\n command:\n
|
||||
\ redirect: ns.coll.eos_command\n action_plugin: ns.coll.eos\n\nThe
|
||||
action_plugin field can be a redirected action plugin, as\nit is resolved
|
||||
normally.\n\nUsing the modified runtime.yml, the example task will only use\nthe
|
||||
ns.coll.eos_facts defaults.\n"
|
||||
- Add support for parsing ``-a`` module options as JSON and not just key=value
|
||||
arguments - https://github.com/ansible/ansible/issues/78112
|
||||
- Added Kylin Linux Advanced Server OS in RedHat OS Family.
|
||||
- Allow ``when`` conditionals to be used on ``flush_handlers`` (https://github.com/ansible/ansible/issues/77616)
|
||||
- Allow meta tasks to be used as handlers.
|
||||
- Display - The display class will now proxy calls to Display.display via the
|
||||
queue from forks/workers to be handled by the parent process for actual display.
|
||||
This reduces some reliance on the fork start method and improves reliability
|
||||
of displaying messages.
|
||||
- Jinja version test - Add pep440 version_type for version test. (https://github.com/ansible/ansible/issues/78288)
|
||||
- Loops - Add new ``loop_control.extended_allitems`` to allow users to disable
|
||||
tracking all loop items for each loop (https://github.com/ansible/ansible/issues/75216)
|
||||
- NetBSD - Add uptime_seconds fact
|
||||
- Provide a `utc` option for strftime to show time in UTC rather than local
|
||||
time
|
||||
- Raise a proper error when ``include_role`` or ``import_role`` is used as a
|
||||
handler.
|
||||
- Remove the ``AnsibleContext.resolve`` method as its override is not necessary.
|
||||
Furthermore the ability to override the ``resolve`` method was deprecated
|
||||
in Jinja 3.0.0 and removed in Jinja 3.1.0.
|
||||
- Utilize @classmethod and @property together to form classproperty (Python
|
||||
3.9) to access field attributes of a class
|
||||
- '``LoopControl`` is now templated through standard ``post_validate`` method
|
||||
(https://github.com/ansible/ansible/pull/75715)'
|
||||
- '``ansible-galaxy collection install`` - add an ``--offline`` option to prevent
|
||||
querying distribution servers (https://github.com/ansible/ansible/issues/77443).'
|
||||
- ansible - Add support for Python 3.11 to Python interpreter discovery.
|
||||
- ansible - At startup the stdin/stdout/stderr file handles are checked to verify
|
||||
they are using blocking IO. If not, the process exits with an error reporting
|
||||
which file handle(s) are using non-blocking IO.
|
||||
- ansible-config adds JSON and YAML output formats for list and dump actions.
|
||||
- ansible-connection now supports verbosity directly on cli
|
||||
- ansible-console added 'collections' command to match playbook keyword.
|
||||
- ansible-doc - remove some of the manual formatting, and use YAML more uniformly.
|
||||
This in particular means that ``true`` and ``false`` are used for boolean
|
||||
values, instead of ``True`` and ``False`` (https://github.com/ansible/ansible/pull/78668).
|
||||
- ansible-galaxy - Support resolvelib versions 0.6.x, 0.7.x, and 0.8.x. The
|
||||
full range of supported versions is now >= 0.5.3, < 0.9.0.
|
||||
- ansible-galaxy now supports a user defined timeout, instead of existing hardcoded
|
||||
60s (now the default).
|
||||
- ansible-test - Add FreeBSD 13.1 remote support.
|
||||
- ansible-test - Add RHEL 9.0 remote support.
|
||||
- ansible-test - Add support for Python 3.11.
|
||||
- ansible-test - Add support for RHEL 8.6 remotes.
|
||||
- ansible-test - Add support for Ubuntu VMs using the ``--remote`` option.
|
||||
- ansible-test - Add support for exporting inventory with ``ansible-test shell
|
||||
--export {path}``.
|
||||
- ansible-test - Add support for multi-arch remotes.
|
||||
- ansible-test - Add support for provisioning Alpine 3.16 remote instances.
|
||||
- ansible-test - Add support for provisioning Fedora 36 remote instances.
|
||||
- ansible-test - Add support for provisioning Ubuntu 20.04 remote instances.
|
||||
- ansible-test - Add support for provisioning remotes which require ``doas``
|
||||
for become.
|
||||
- ansible-test - Add support for running non-interactive commands with ``ansible-test
|
||||
shell``.
|
||||
- ansible-test - Alpine remotes now use ``sudo`` for tests, using ``doas`` only
|
||||
for bootstrapping.
|
||||
- ansible-test - An improved error message is shown when the download of a pip
|
||||
bootstrap script fails. The download now uses ``urllib2`` instead of ``urllib``
|
||||
on Python 2.
|
||||
- ansible-test - Avoid using the ``mock_use_standalone_module`` setting for
|
||||
unit tests running on Python 3.8 or later.
|
||||
- ansible-test - Become support for remote instance provisioning is no longer
|
||||
tied to a fixed list of platforms.
|
||||
- ansible-test - Blocking mode is now enforced for stdin, stdout and stderr.
|
||||
If any of these are non-blocking then ansible-test will exit during startup
|
||||
with an error.
|
||||
- ansible-test - Distribution specific test containers are now multi-arch, supporting
|
||||
both x86_64 and aarch64.
|
||||
- ansible-test - Distribution specific test containers no longer contain a ``/etc/ansible/hosts``
|
||||
file.
|
||||
- ansible-test - Enable loading of ``coverage`` data files created by older
|
||||
supported ansible-test releases.
|
||||
- ansible-test - Fedora 36 has been added as a test container.
|
||||
- ansible-test - FreeBSD remotes now use ``sudo`` for tests, using ``su`` only
|
||||
for bootstrapping.
|
||||
- ansible-test - Improve consistency of output messages by using stdout or stderr
|
||||
for most output, but not both.
|
||||
- ansible-test - Remote Alpine instances now have the ``acl`` package installed.
|
||||
- ansible-test - Remote Fedora instances now have the ``acl`` package installed.
|
||||
- ansible-test - Remote FreeBSD instances now have ACLs enabled on the root
|
||||
filesystem.
|
||||
- ansible-test - Remote Ubuntu instances now have the ``acl`` package installed.
|
||||
- ansible-test - Remove Fedora 34 test container.
|
||||
- ansible-test - Remove Fedora 35 test container.
|
||||
- ansible-test - Remove FreeBSD 13.0 remote support.
|
||||
- ansible-test - Remove RHEL 8.5 remote support.
|
||||
- ansible-test - Remove Ubuntu 18.04 test container.
|
||||
- ansible-test - Remove support for Python 2.7 on provisioned FreeBSD instances.
|
||||
- ansible-test - Remove support for Python 3.8 on the controller.
|
||||
- ansible-test - Remove the ``opensuse15py2`` container.
|
||||
- ansible-test - Support multiple pinned versions of the ``coverage`` module.
|
||||
The version used now depends on the Python version in use.
|
||||
- ansible-test - Test containers have been updated to remove the ``VOLUME``
|
||||
instruction.
|
||||
- ansible-test - The Alpine 3 test container has been updated to Alpine 3.16.0.
|
||||
- ansible-test - The ``http-test-container`` container is now multi-arch, supporting
|
||||
both x86_64 and aarch64.
|
||||
- ansible-test - The ``pypi-test-container`` container is now multi-arch, supporting
|
||||
both x86_64 and aarch64.
|
||||
- ansible-test - The ``shell`` command can be used outside a collection if no
|
||||
controller delegation is required.
|
||||
- ansible-test - The openSUSE test container has been updated to openSUSE Leap
|
||||
15.4.
|
||||
- ansible-test - Ubuntu 22.04 has been added as a test container.
|
||||
- ansible-test - Update pinned sanity test requirements for all tests.
|
||||
- ansible-test - Update the ``base`` container to 3.4.0.
|
||||
- ansible-test - Update the ``default`` containers to 6.6.0.
|
||||
- apt_repository remove dependency on apt-key and use gpg + /usr/share/keyrings
|
||||
directly instead
|
||||
- blockinfile - The presence of the multiline flag (?m) in the regular expression
|
||||
for insertafter opr insertbefore controls whether the match is done line by
|
||||
line or with multiple lines (https://github.com/ansible/ansible/pull/75090).
|
||||
- calls to listify_lookup_plugin_terms in core do not pass in loader/dataloader
|
||||
anymore.
|
||||
- collections - ``ansible-galaxy collection build`` can now utilize ``MANIFEST.in``
|
||||
style directives from ``galaxy.yml`` instead of ``build_ignore`` effectively
|
||||
inverting the logic from include by default, to exclude by default. (https://github.com/ansible/ansible/pull/78422)
|
||||
- config manager, move templating into main query function in config instead
|
||||
of constants
|
||||
- config manager, remove updates to configdata as it is mostly unused
|
||||
- configuration entry INTERPRETER_PYTHON_DISTRO_MAP is now 'private' and won't
|
||||
show up in normal configuration queries and docs, since it is not 'settable'
|
||||
this avoids user confusion.
|
||||
- distribution - add distribution_minor_version for Debian Distro (https://github.com/ansible/ansible/issues/74481).
|
||||
- documentation construction now gives more information on error.
|
||||
- facts - add OSMC to Debian os_family mapping
|
||||
- get_url - permit to pass to parameter ``checksum`` an URL pointing to a file
|
||||
containing only a checksum (https://github.com/ansible/ansible/issues/54390).
|
||||
- new tests url, uri and urn will verify string as such, but they don't check
|
||||
existance of the resource
|
||||
- plugin loader - add ansible_name and ansible_aliases attributes to plugin
|
||||
objects/classes.
|
||||
- systemd is now systemd_service to better reflect the scope of the module,
|
||||
systemd is kept as an alias for backwards compatibility.
|
||||
- templating - removed internal template cache
|
||||
- uri - cleanup write_file method, remove overkill safety checks and report
|
||||
any exception, change shutilcopyfile to use module.atomic_move
|
||||
- urls - Add support to specify SSL/TLS ciphers to use during a request (https://github.com/ansible/ansible/issues/78633)
|
||||
- 'validate-modules - Allow ``type: raw`` on a module return type definition
|
||||
for values that have a dynamic type'
|
||||
- version output now includes the path to the python executable that Ansible
|
||||
is running under
|
||||
- yum_repository - do not give the ``async`` parameter a default value anymore,
|
||||
since this option is deprecated in RHEL 8. This means that ``async = 1`` won't
|
||||
be added to repository files if omitted, but it can still be set explicitly
|
||||
if needed.
|
||||
release_summary: '| Release Date: 2022-09-26
|
||||
|
||||
| `Porting Guide <https://docs.ansible.com/ansible/devel/porting_guides.html>`__
|
||||
|
||||
'
|
||||
removed_features:
|
||||
- PlayIterator - remove deprecated ``PlayIterator.ITERATING_*`` and ``PlayIterator.FAILED_*``
|
||||
- Remove deprecated ``ALLOW_WORLD_READABLE_TMPFILES`` configuration option (https://github.com/ansible/ansible/issues/77393)
|
||||
- Remove deprecated ``COMMAND_WARNINGS`` configuration option (https://github.com/ansible/ansible/issues/77394)
|
||||
- Remove deprecated ``DISPLAY_SKIPPED_HOSTS`` environment variable (https://github.com/ansible/ansible/issues/77396)
|
||||
- Remove deprecated ``LIBVIRT_LXC_NOSECLABEL`` environment variable (https://github.com/ansible/ansible/issues/77395)
|
||||
- Remove deprecated ``NETWORK_GROUP_MODULES`` environment variable (https://github.com/ansible/ansible/issues/77397)
|
||||
- Remove deprecated ``UnsafeProxy``
|
||||
- Remove deprecated ``plugin_filters_cfg`` config option from ``default`` section
|
||||
(https://github.com/ansible/ansible/issues/77398)
|
||||
- Remove deprecated functionality that allows loading cache plugins directly
|
||||
without using ``cache_loader``.
|
||||
- Remove deprecated functionality that allows subclassing ``DefaultCallback``
|
||||
without the corresponding ``doc_fragment``.
|
||||
- Remove deprecated powershell functions ``Load-CommandUtils`` and ``Import-PrivilegeUtil``
|
||||
- apt_key - remove deprecated ``key`` module param
|
||||
- command/shell - remove deprecated ``warn`` module param
|
||||
- get_url - remove deprecated ``sha256sum`` module param
|
||||
- import_playbook - remove deprecated functionality that allows providing additional
|
||||
parameters in free form
|
||||
codename: C'mon Everybody
|
||||
fragments:
|
||||
- 17393-fix_silently_failing_lvm_facts.yaml
|
||||
- 23161-includes-loops-rescue.yml
|
||||
- 29680-fetch-file-file-name-too-long.yml
|
||||
- 43191-72638-ansible_failed_task-fixes.yml
|
||||
- 56017-allow-lazy-eval-on-jinja2-expr.yml
|
||||
- 58632-uri-include_use_proxy.yaml
|
||||
- 61965-user-module-fails-to-change-primary-group.yml
|
||||
- 64612-fetch_file-multi-part-extension.yml
|
||||
- 65499-no_inventory_parsed.yml
|
||||
- 70180-collection-list-more-robust.yml
|
||||
- 73072-dnf-skip-broken.yml
|
||||
- 74446-network-conn-options.yaml
|
||||
- 74481_debian_minor_version.yml
|
||||
- 75042-lowercase-dash-n-with-luseradd-on-all-distros.yml
|
||||
- 75090-multiline-flag-support-for-blockinfile.yml
|
||||
- 75216-loop-control-extended-allitems.yml
|
||||
- 75364-yum-repository-async.yml
|
||||
- 75431-Add-uptime-fact-for-NetBSD.yml
|
||||
- 75715-post_validate-LoopControl.yml
|
||||
- 75740-remove-travis-file-from-role-skeletons.yml
|
||||
- 76167-update-attributes-of-files-that-are-links.yml
|
||||
- 76737-paramiko-rsa-sha2.yml
|
||||
- 76971-unarchive-remove-unnecessary-zipinfo-dependency.yml
|
||||
- 77014-ansible-galaxy-list-fix-null-metadata-namespace-name.yml
|
||||
- 77265-module_defaults-with-modules-as-redirected-actions.yaml
|
||||
- 77315-fix-meta-vv-header.yml
|
||||
- 77393-remove-allow_world_readable_tmpfiles.yml
|
||||
- 77394-remove-command_warnings.yml
|
||||
- 77395-remove-libvirt_lxc_noseclabel.yml
|
||||
- 77396-remove-display_skipped_hosts.yml
|
||||
- 77397-remove-network_group_modules.yml
|
||||
- 77398-remove-plugin_filters_cfg-default.yml
|
||||
- 77418-ansible-galaxy-init-include-meta-runtime.yml
|
||||
- 77424-fix-False-ansible-galaxy-server-config-options.yaml
|
||||
- 77465-ansible-test-compile-crash.yml
|
||||
- 77468-ansible-galaxy-remove-unnecessary-api-call.yml
|
||||
- 77472-ansible-test-network-disconnect-warning.yml
|
||||
- 77493-ansible-galaxy-find-git-executable-before-using.yaml
|
||||
- 77507-deprecate-pc-verbosity.yml
|
||||
- 77535-prevent-losing-unsafe-lookups.yml
|
||||
- 77544-fix-error-yaml-inventory-int-hostnames.yml
|
||||
- 77561-ansible-galaxy-coll-install-null-dependencies.yml
|
||||
- 77576-arg_spec-no_log-aliases.yml
|
||||
- 77599-add-url-include-deprecation.yml
|
||||
- 77630-ansible-galaxy-fix-unsupported-resolvelib-version.yml
|
||||
- 77649-support-recent-resolvelib-versions.yml
|
||||
- 77679-syntax-error-mention-filename.yml
|
||||
- 77693-actually-ignore-unreachable.yml
|
||||
- 77781-callback-crash.yml
|
||||
- 77788-deprecate-non-lists-lookups.yml
|
||||
- 77789-catch-keyerror-lookup-dict.yml
|
||||
- 77792-fix-facts-discovery-specific-interface-names.yml
|
||||
- 77898-ansible-config-dump-only-changed-all-types.yml
|
||||
- 77934-empty-loop-template-callback.yml
|
||||
- 77936-add-pyyaml-version.yml
|
||||
- 77969-apt-preferences.yml
|
||||
- 78050-replace-spwd.yml
|
||||
- 78058-yum-releasever-latest.yml
|
||||
- 78112-adhoc-args-as-json.yml
|
||||
- 78141-template-fix-convert_data.yml
|
||||
- 78156-undefined-check-in-finalize.yml
|
||||
- 78204-galaxy-role-file-detection.yml
|
||||
- 78214-wait-for-compare-bytes.yml
|
||||
- 78223_aix_fix_processor_facts.yml
|
||||
- 78295-dnf-fix-comparison-operators-docs.yml
|
||||
- 78325-ansible-galaxy-fix-caching-paginated-responses-from-v3-servers.yml
|
||||
- 78496-fix-apt-check-mode.yml
|
||||
- 78512-uri-use-netrc-true-false-argument.yml
|
||||
- 78516-galaxy-cli-exit-codes.yml
|
||||
- 78562-deprecate-vars-plugin-attr.yml
|
||||
- 78612-rescue-block-ansible_play_hosts.yml
|
||||
- 78633-urls-ciphers.yml
|
||||
- 78648-urllib3-import-exceptions.yml
|
||||
- 78668-ansible-doc-formatting.yml
|
||||
- 78678-add-a-g-install-offline.yml
|
||||
- 78700-add-plugin-name-and-aliases.yml
|
||||
- 78750-paramiko-ssh-args-compat.yml
|
||||
- 78781-fix-apt-only_upgrade-behavior.yml
|
||||
- abstract_errors_info.yml
|
||||
- add-omsc-os-family.yml
|
||||
- added_uri_tests.yml
|
||||
- adoc_moarf.yml
|
||||
- aix_chmod_255.yml
|
||||
- ansible-connection_decode.yml
|
||||
- ansible-console-renamed-arg.yml
|
||||
- ansible-galaxy-collection-init-force.yml
|
||||
- ansible-require-blocking-io.yml
|
||||
- ansible-require-utf8.yml
|
||||
- ansible-test-ansible-core-mock.yml
|
||||
- ansible-test-ansible-doc-sanity-fqcn.yml
|
||||
- ansible-test-container-tmpfs.yml
|
||||
- ansible-test-containers-no-volume.yml
|
||||
- ansible-test-content-config.yml
|
||||
- ansible-test-coverage.yml
|
||||
- ansible-test-default-containers.yml
|
||||
- ansible-test-distro-containers-hosts.yml
|
||||
- ansible-test-distro-containers.yml
|
||||
- ansible-test-drop-python-3.8-controller.yml
|
||||
- ansible-test-fedora-35.yml
|
||||
- ansible-test-filter-options.yml
|
||||
- ansible-test-generalize-become.yml
|
||||
- ansible-test-integration-targets-filter.yml
|
||||
- ansible-test-less-python-2.7.yml
|
||||
- ansible-test-locale.yml
|
||||
- ansible-test-more-remotes.yml
|
||||
- ansible-test-multi-arch-cloud-containers.yml
|
||||
- ansible-test-multi-arch-distro-containers.yml
|
||||
- ansible-test-multi-arch-remotes.yml
|
||||
- ansible-test-pip-bootstrap.yml
|
||||
- ansible-test-podman-create-retry.yml
|
||||
- ansible-test-remote-acl.yml
|
||||
- ansible-test-remote-become.yml
|
||||
- ansible-test-remote-completion-validation.yml
|
||||
- ansible-test-remotes.yml
|
||||
- ansible-test-rhel-8.6.yml
|
||||
- ansible-test-sanity-requirements.yml
|
||||
- ansible-test-self-change-classification.yml
|
||||
- ansible-test-shell-features.yml
|
||||
- ansible-test-subprocess-isolation.yml
|
||||
- ansible-test-target-filter.yml
|
||||
- ansible-test-target-options.yml
|
||||
- ansible-test-tty-output-handling.yml
|
||||
- ansible-test-ubuntu-bootstrap-fix.yml
|
||||
- ansible-test-ubuntu-remote.yml
|
||||
- ansible-test-validate-modules-docs-only-docstring.yml
|
||||
- ansible-test-verify-executables.yml
|
||||
- ansible_connection_verbosity.yml
|
||||
- apt_key-remove-deprecated-key.yml
|
||||
- apt_repository_sans_apt_key.yml
|
||||
- apt_virtual_fix.yml
|
||||
- atomic_cache_files.yml
|
||||
- better-msg-role-in-handler.yml
|
||||
- better_info_sources.yml
|
||||
- better_nohosts_error.yml
|
||||
- collection-build-manifest.yml
|
||||
- config_error_origin.yml
|
||||
- config_formats.yml
|
||||
- config_load_by_name.yml
|
||||
- config_manager_changes.yml
|
||||
- console_list_all.yml
|
||||
- deprecate-crypt-support.yml
|
||||
- deprecate-fact_path-gather_subset-gather_timeout-defaults.yml
|
||||
- display_verbosity.yml
|
||||
- dnf-fix-locale-language.yml
|
||||
- doc_errors.yml
|
||||
- doc_vac_ignore.yml
|
||||
- dont-expose-included-handlers.yml
|
||||
- ensure_config_always_templated.yml
|
||||
- fieldattributes-classproperty.yml
|
||||
- fix-change-while-iterating-module-utils-service.yml
|
||||
- fix_adoc_text.yml
|
||||
- fix_init_commented.yml
|
||||
- fix_inv_refresh.yml
|
||||
- forked-display-via-queue.yml
|
||||
- galaxy_server_timeout.yml
|
||||
- get_url-accept-file-for-checksum.yml
|
||||
- get_url-remove-deprecated-sha256sum.yml
|
||||
- git_fixes.yml
|
||||
- handle-role-dependency-type-error.yml
|
||||
- hide_distro_map.yml
|
||||
- import_playbook-remove-params.yml
|
||||
- items2dict-error-handling.yml
|
||||
- kylin_linux_advanced_server_distribution_support.yml
|
||||
- legacy_no_file_skip.yml
|
||||
- loader_in_listify.yml
|
||||
- local_fact_unreadable.yml
|
||||
- null_means_none.yml
|
||||
- opensuse_disto_id.yml
|
||||
- password_lookup_fix.yml
|
||||
- pause_echo_fix.yml
|
||||
- pep440-version-type.yml
|
||||
- permission-denied-spwd-module.yml
|
||||
- pip-lazy-import.yml
|
||||
- play_iterator-remove_deprecations.yml
|
||||
- play_iterator_iterating_handlers.yml
|
||||
- playiterator-deprecate-methods.yml
|
||||
- plugin-loader-deterministic-fuzzy-match.yml
|
||||
- powershell-deprecated-functions.yml
|
||||
- python-2.6-discovery.yml
|
||||
- python-3.11.yml
|
||||
- python39-min-controller.yml
|
||||
- python_version_path.yml
|
||||
- remove-ansiblecontext-resolve.yml
|
||||
- remove-deprecated-default-callback-without-doc.yml
|
||||
- remove-import-cache-plugin-directly.yml
|
||||
- require-fqcn-redirects.yml
|
||||
- restrict_role_files_to_role.yml
|
||||
- self_referential.yml
|
||||
- shell_env_typeerror.yml
|
||||
- strftime-in-utc.yml
|
||||
- systemd_services.yml
|
||||
- templar-correct-environment_class-template.yml
|
||||
- templar-deprecate-shared_loader_obj.yml
|
||||
- template_override.yml
|
||||
- type_shim_exception_swallow.yml
|
||||
- unsafeproxy-deprecated.yml
|
||||
- until_also_implicit.yml
|
||||
- use-before-definition.yml
|
||||
- v2.14.0-initial-commit.yaml
|
||||
- v2.14.0b1_summary.yaml
|
||||
- validate-modules-module-raw-return-type.yml
|
||||
- validate-modules-version_added.yaml
|
||||
- vault_syml_allow.yml
|
||||
- vm_more_efficient.yml
|
||||
- windows_conn_option_fix.yml
|
||||
- winrm-kinit-path.yml
|
||||
- write_file_uri_cleanup.yml
|
||||
- zap_template_cache.yml
|
||||
plugins:
|
||||
test:
|
||||
- description: is the string a valid URI
|
||||
name: uri
|
||||
namespace: null
|
||||
- description: is the string a valid URL
|
||||
name: url
|
||||
namespace: null
|
||||
- description: is the string a valid URN
|
||||
name: urn
|
||||
namespace: null
|
||||
release_date: '2022-09-26'
|
||||
@ -1,22 +0,0 @@
|
||||
---
|
||||
title: ansible-core
|
||||
release_tag_re: '(v(?:[\d.ab\-]|rc)+)'
|
||||
pre_release_tag_re: '(?P<pre_release>(?:[ab]|rc)+\d*)$'
|
||||
changes_file: changelog.yaml
|
||||
changes_format: combined
|
||||
keep_fragments: true
|
||||
always_refresh: true
|
||||
ignore_other_fragment_extensions: true
|
||||
mention_ancestor: false
|
||||
notesdir: fragments
|
||||
prelude_section_name: release_summary
|
||||
new_plugins_after_name: removed_features
|
||||
sections:
|
||||
- ['major_changes', 'Major Changes']
|
||||
- ['minor_changes', 'Minor Changes']
|
||||
- ['breaking_changes', 'Breaking Changes / Porting Guide']
|
||||
- ['deprecated_features', 'Deprecated Features']
|
||||
- ['removed_features', 'Removed Features (previously deprecated)']
|
||||
- ['security_fixes', 'Security Fixes']
|
||||
- ['bugfixes', 'Bugfixes']
|
||||
- ['known_issues', 'Known Issues']
|
||||
@ -1,2 +0,0 @@
|
||||
bugfixes:
|
||||
- setup - Adds a default value to ``lvm_facts`` when lvm or lvm2 is not installed on linux (https://github.com/ansible/ansible/issues/17393)
|
||||
@ -1,2 +0,0 @@
|
||||
bugfixes:
|
||||
- "Properly execute rescue section when an include task fails in all loop iterations (https://github.com/ansible/ansible/issues/23161)"
|
||||
@ -1,3 +0,0 @@
|
||||
bugfixes:
|
||||
- fetch_file - Ensure we only use the filename when calculating a tempfile, and do not incude the query string
|
||||
(https://github.com/ansible/ansible/issues/29680)
|
||||
@ -1,2 +0,0 @@
|
||||
bugfixes:
|
||||
- Propagate ``ansible_failed_task`` and ``ansible_failed_result`` to an outer rescue (https://github.com/ansible/ansible/issues/43191)
|
||||
@ -1,2 +0,0 @@
|
||||
breaking_changes:
|
||||
- Allow for lazy evaluation of Jinja2 expressions (https://github.com/ansible/ansible/issues/56017)
|
||||
@ -1,2 +0,0 @@
|
||||
bugfixes:
|
||||
- uri - properly use uri parameter use_proxy (https://github.com/ansible/ansible/issues/58632)
|
||||
@ -1,2 +0,0 @@
|
||||
bugfixes:
|
||||
- prevent lusermod from using group name instead of group id (https://github.com/ansible/ansible/pull/77914)
|
||||
@ -1,2 +0,0 @@
|
||||
bugfixes:
|
||||
- fetch_file - properly split files with multiple file extensions (https://github.com/ansible/ansible/pull/75257)
|
||||
@ -1,2 +0,0 @@
|
||||
minor_changes:
|
||||
- Add a new "INVENTORY_UNPARSED_WARNING" flag add to hide the "No inventory was parsed, only implicit localhost is available" warning
|
||||
@ -1,2 +0,0 @@
|
||||
bugfixes:
|
||||
- ansible-galaxy - do not require mandatory keys in the ``galaxy.yml`` of source collections when listing them (https://github.com/ansible/ansible/issues/70180).
|
||||
@ -1,4 +0,0 @@
|
||||
bugfixes:
|
||||
- dnf - The ``skip_broken`` option is now used in installs (https://github.com/ansible/ansible/issues/73072).
|
||||
- dnf - The ``nobest`` option now also works for ``state=latest``.
|
||||
- dnf - Condense a few internal boolean returns.
|
||||
@ -1,3 +0,0 @@
|
||||
---
|
||||
bugfixes:
|
||||
- Fix for network_cli not getting all relevant connection options
|
||||
@ -1,2 +0,0 @@
|
||||
minor_changes:
|
||||
- distribution - add distribution_minor_version for Debian Distro (https://github.com/ansible/ansible/issues/74481).
|
||||
@ -1,2 +0,0 @@
|
||||
bugfixes:
|
||||
- user - fix creating a local user if the user group already exists (https://github.com/ansible/ansible/pull/75042)
|
||||
@ -1,2 +0,0 @@
|
||||
minor_changes:
|
||||
- blockinfile - The presence of the multiline flag (?m) in the regular expression for insertafter opr insertbefore controls whether the match is done line by line or with multiple lines (https://github.com/ansible/ansible/pull/75090).
|
||||
@ -1,3 +0,0 @@
|
||||
minor_changes:
|
||||
- Loops - Add new ``loop_control.extended_allitems`` to allow users to disable tracking all loop items for each loop
|
||||
(https://github.com/ansible/ansible/issues/75216)
|
||||
@ -1,2 +0,0 @@
|
||||
minor_changes:
|
||||
- yum_repository - do not give the ``async`` parameter a default value anymore, since this option is deprecated in RHEL 8. This means that ``async = 1`` won't be added to repository files if omitted, but it can still be set explicitly if needed.
|
||||
@ -1,2 +0,0 @@
|
||||
minor_changes:
|
||||
- NetBSD - Add uptime_seconds fact
|
||||
@ -1,2 +0,0 @@
|
||||
minor_changes:
|
||||
- "``LoopControl`` is now templated through standard ``post_validate`` method (https://github.com/ansible/ansible/pull/75715)"
|
||||
@ -1,4 +0,0 @@
|
||||
breaking_changes:
|
||||
- The default ansible-galaxy role skeletons no longer contain .travis.yml files.
|
||||
You can configure ansible-galaxy to use a custom role skeleton that contains a .travis.yml file
|
||||
to continue using Galaxy's integration with Travis CI.
|
||||
@ -1,2 +0,0 @@
|
||||
bugfixes:
|
||||
- file - setting attributes of symbolic links or files that are hard linked no longer fails when the link target is unspecified (https://github.com/ansible/ansible/issues/76142).
|
||||
@ -1,5 +0,0 @@
|
||||
bugfixes:
|
||||
- paramiko - Add a new option to allow paramiko >= 2.9 to easily work with
|
||||
all devices now that rsa-sha2 support was added to paramiko, which
|
||||
prevented communication with numerous platforms.
|
||||
(https://github.com/ansible/ansible/issues/76737)
|
||||
@ -1,2 +0,0 @@
|
||||
bugfixes:
|
||||
- unarchive - if unzip is available but zipinfo is not, use unzip -Z instead of zipinfo (https://github.com/ansible/ansible/issues/76959).
|
||||
@ -1,2 +0,0 @@
|
||||
bugfixes:
|
||||
- ansible-galaxy - fix listing collections that contains metadata but the namespace or name are not strings.
|
||||
@ -1,55 +0,0 @@
|
||||
minor_changes:
|
||||
- |
|
||||
Add an 'action_plugin' field for modules in runtime.yml plugin_routing.
|
||||
|
||||
This fixes module_defaults by supporting modules-as-redirected-actions
|
||||
without redirecting module_defaults entries to the common action.
|
||||
|
||||
.. code: yaml
|
||||
|
||||
plugin_routing:
|
||||
action:
|
||||
facts:
|
||||
redirect: ns.coll.eos
|
||||
command:
|
||||
redirect: ns.coll.eos
|
||||
modules:
|
||||
facts:
|
||||
redirect: ns.coll.eos_facts
|
||||
command:
|
||||
redirect: ns.coll.eos_command
|
||||
|
||||
With the runtime.yml above for ns.coll, a task such as
|
||||
|
||||
.. code: yaml
|
||||
|
||||
- hosts: all
|
||||
module_defaults:
|
||||
ns.coll.eos_facts: {'valid_for_eos_facts': 'value'}
|
||||
ns.coll.eos_command: {'not_valid_for_eos_facts': 'value'}
|
||||
tasks:
|
||||
- ns.coll.facts:
|
||||
|
||||
will end up with defaults for eos_facts and eos_command
|
||||
since both modules redirect to the same action.
|
||||
|
||||
To select an action plugin for a module without merging
|
||||
module_defaults, define an action_plugin field for the resolved
|
||||
module in the runtime.yml.
|
||||
|
||||
.. code: yaml
|
||||
|
||||
plugin_routing:
|
||||
modules:
|
||||
facts:
|
||||
redirect: ns.coll.eos_facts
|
||||
action_plugin: ns.coll.eos
|
||||
command:
|
||||
redirect: ns.coll.eos_command
|
||||
action_plugin: ns.coll.eos
|
||||
|
||||
The action_plugin field can be a redirected action plugin, as
|
||||
it is resolved normally.
|
||||
|
||||
Using the modified runtime.yml, the example task will only use
|
||||
the ns.coll.eos_facts defaults.
|
||||
@ -1,2 +0,0 @@
|
||||
bugfixes:
|
||||
- Fix ``-vv`` output for meta tasks to not have an empty message when skipped, print the skip reason instead. (https://github.com/ansible/ansible/issues/77315)
|
||||
@ -1,2 +0,0 @@
|
||||
removed_features:
|
||||
- Remove deprecated ``ALLOW_WORLD_READABLE_TMPFILES`` configuration option (https://github.com/ansible/ansible/issues/77393)
|
||||
@ -1,3 +0,0 @@
|
||||
removed_features:
|
||||
- Remove deprecated ``COMMAND_WARNINGS`` configuration option (https://github.com/ansible/ansible/issues/77394)
|
||||
- command/shell - remove deprecated ``warn`` module param
|
||||
@ -1,2 +0,0 @@
|
||||
removed_features:
|
||||
- Remove deprecated ``LIBVIRT_LXC_NOSECLABEL`` environment variable (https://github.com/ansible/ansible/issues/77395)
|
||||
@ -1,2 +0,0 @@
|
||||
removed_features:
|
||||
- Remove deprecated ``DISPLAY_SKIPPED_HOSTS`` environment variable (https://github.com/ansible/ansible/issues/77396)
|
||||
@ -1,2 +0,0 @@
|
||||
removed_features:
|
||||
- Remove deprecated ``NETWORK_GROUP_MODULES`` environment variable (https://github.com/ansible/ansible/issues/77397)
|
||||
@ -1,2 +0,0 @@
|
||||
removed_features:
|
||||
- Remove deprecated ``plugin_filters_cfg`` config option from ``default`` section (https://github.com/ansible/ansible/issues/77398)
|
||||
@ -1,2 +0,0 @@
|
||||
bugfixes:
|
||||
- ansible-galaxy - fix missing meta/runtime.yml in default galaxy skeleton used for ansible-galaxy collection init
|
||||
@ -1,2 +0,0 @@
|
||||
bugfixes:
|
||||
- ansible-galaxy - Fix loading boolean server options so False doesn't become a truthy string (https://github.com/ansible/ansible/issues/77416).
|
||||
@ -1,2 +0,0 @@
|
||||
bugfixes:
|
||||
- "ansible-test compile sanity test - do not crash if a column could not be determined for an error (https://github.com/ansible/ansible/pull/77465)."
|
||||
@ -1,5 +0,0 @@
|
||||
bugfixes:
|
||||
- >-
|
||||
``ansible-galaxy`` - remove extra server api call during dependency resolution
|
||||
for requirements and dependencies that are already satisfied
|
||||
(https://github.com/ansible/ansible/issues/77443).
|
||||
@ -1,3 +0,0 @@
|
||||
bugfixes:
|
||||
- ansible-test - Don't fail if network cannot be disconnected
|
||||
(https://github.com/ansible/ansible/pull/77472)
|
||||
@ -1,2 +0,0 @@
|
||||
bugfixes:
|
||||
- Fix traceback when installing a collection from a git repository and git is not installed (https://github.com/ansible/ansible/issues/77479).
|
||||
@ -1,2 +0,0 @@
|
||||
deprecated_features:
|
||||
- PlayContext.verbosity is deprecated and will be removed in 2.18. Use ansible.utils.display.Display().verbosity as the single source of truth.
|
||||
@ -1,2 +0,0 @@
|
||||
bugfixes:
|
||||
- Prevent losing unsafe on results returned from lookups (https://github.com/ansible/ansible/issues/77535)
|
||||
@ -1,2 +0,0 @@
|
||||
bugfixes:
|
||||
- yaml inventory plugin - fix the error message for non-string hostnames (https://github.com/ansible/ansible/issues/77519).
|
||||
@ -1,4 +0,0 @@
|
||||
bugfixes:
|
||||
- >-
|
||||
ansible-galaxy - fix installing collections that have dependencies in the metadata set to
|
||||
null instead of an empty dictionary (https://github.com/ansible/ansible/issues/77560).
|
||||
@ -1,2 +0,0 @@
|
||||
bugfixes:
|
||||
- arg_spec - Fix incorrect ``no_log`` warning when a parameter alias is used (https://github.com/ansible/ansible/pull/77576)
|
||||
@ -1,2 +0,0 @@
|
||||
bugfixes:
|
||||
- include module - add docs url to include deprecation message (https://github.com/ansible/ansible/issues/76684).
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user