瀏覽代碼

Fix deprecated subscription-manager command

Benjamin Affolter 7 年之前
父節點
當前提交
1cd1994e83
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      roles/rhel_subscribe/tasks/main.yml

+ 1 - 1
roles/rhel_subscribe/tasks/main.yml

@@ -62,7 +62,7 @@
   when: openshift_pool_id.stdout == '' and openshift_pool_attached is defined and openshift_pool_attached.stdout == ''
 
 - name: Attach to OpenShift Pool
-  command: subscription-manager subscribe --pool {{ openshift_pool_id.stdout_lines[0] }}
+  command: subscription-manager attach --pool {{ openshift_pool_id.stdout_lines[0] }}
   register: subscribe_pool
   until: subscribe_pool | succeeded
   when: openshift_pool_id.stdout != ''