Fix role gate tests for Ansible 2.3
Add 'become' and root 'user' options to the playbook instead of using 'ansible_become' through an inventory variable. Change-Id: I5e703e24fe0b3aed2784fbf63d0f2e8f81d44f0b
This commit is contained in:
parent
b259318aee
commit
114a6322ed
@ -13,6 +13,5 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
ansible_become: True
|
|
||||||
ansible_host: 127.0.0.1
|
ansible_host: 127.0.0.1
|
||||||
ansible_python_interpreter: "/usr/bin/python2"
|
ansible_python_interpreter: "/usr/bin/python2"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
[all]
|
[all]
|
||||||
localhost ansible_connection=local ansible_become=True
|
localhost
|
||||||
|
|
||||||
[all_containers]
|
[all_containers]
|
||||||
|
|
||||||
|
@ -16,6 +16,8 @@
|
|||||||
- name: Playbook for role testing
|
- name: Playbook for role testing
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
connection: local
|
connection: local
|
||||||
|
user: root
|
||||||
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- role: "memcached_server"
|
- role: "memcached_server"
|
||||||
post_tasks:
|
post_tasks:
|
||||||
|
Loading…
Reference in New Issue
Block a user